Skip to content

Commit

Permalink
Always call proceedAction on Main Actor
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Jan 8, 2025
1 parent 90a0607 commit 5d173a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private extension FreemiumDBPPromotionViewCoordinator {

/// Action to be executed when the user proceeds with the promotion (e.g opens DBP)
var proceedAction: () async -> Void {
{ [weak self] in
{ @MainActor [weak self] in
guard let self else { return }

execute(resultsAction: {
Expand All @@ -105,7 +105,7 @@ private extension FreemiumDBPPromotionViewCoordinator {
self.freemiumDBPExperimentPixelHandler.fire(FreemiumDBPExperimentPixel.newTabScanClick)
})

await showFreemiumDBP()
showFreemiumDBP()
dismissHomePagePromotion()
}
}
Expand Down

0 comments on commit 5d173a3

Please sign in to comment.