Skip to content

Commit

Permalink
Update RiotSwiftUI/Modules/Room/PollTimeline/PollTimelineViewModel.swift
Browse files Browse the repository at this point in the history
Co-authored-by: SBiOSoftWhare <[email protected]>
  • Loading branch information
stefanceriu and SBiOSoftWhare authored Dec 9, 2021
1 parent 0bbe96a commit 204e098
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ class PollTimelineViewModel: PollTimelineViewModelType {
return
}

for answerOption in state.poll.answerOptions {
if answerOption.id == selectedAnswerIdentifier {
for answerOption in state.poll.answerOptions where answerOption.id == selectedAnswerIdentifier {
if answerOption.selected {
answerOption.selected = false
answerOption.count -= 1
Expand Down

0 comments on commit 204e098

Please sign in to comment.