Add id in TimelinePollDetails

This commit is contained in:
Alfonso Grillo
2023-01-20 11:25:27 +01:00
parent 8c572d0bfe
commit 23ad35aa31
7 changed files with 26 additions and 17 deletions
@@ -146,7 +146,8 @@ struct TimelinePollAnswerOptionButton_Previews: PreviewProvider {
}
static func buildPoll(closed: Bool, type: TimelinePollType) -> TimelinePollDetails {
TimelinePollDetails(question: "",
TimelinePollDetails(id: UUID().uuidString,
question: "",
answerOptions: [],
closed: closed,
startDate: .init(),