Skip to content

Commit

Permalink
[feat] hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeonhui committed Dec 13, 2022
1 parent b6b2f55 commit a93e697
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ extension DefaultQuestUseCase: QuestUseCase {
return questsRepository
.update(with: quest)
.do(onSuccess: { quest in
if quest.state {
NotificationCenter.default.post(name: .questStateChanged, object: quest.date)
}
NotificationCenter.default.post(name: .questStateChanged, object: quest.date)
})
.map { _ in true }
.catchAndReturn(false)
Expand All @@ -40,7 +38,7 @@ extension DefaultQuestUseCase: QuestUseCase {
.do(onSuccess: { quest in
NotificationCenter.default.post(name: .questStateChanged, object: quest.date)
})
.map { _ in true }
.catchAndReturn(false)
.map { _ in true }
.catchAndReturn(false)
}
}

0 comments on commit a93e697

Please sign in to comment.