Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 9525f37

Browse files
authored
fix bug where react UI unwinds itself (#2571)
1 parent 0d94c65 commit 9525f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Issues/Comments/IssueCommentSectionController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ final class IssueCommentSectionController: ListBindingSectionController<IssueCom
209209
generator.impactOccurred()
210210
client.react(subjectID: object.id, content: content, isAdd: isAdd) { [weak self] result in
211211
switch result {
212-
case .success:
212+
case .success: break
213+
case .error(let error):
213214
self?.reactionMutation = previousReaction
214215
self?.update(animated: trueUnlessReduceMotionEnabled)
215-
case .error(let error):
216216
Squawk.show(error: error)
217217
}
218218
}

0 commit comments

Comments
 (0)