Skip to content

Commit

Permalink
immediately set isShown when we're going to show a sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Sep 6, 2024
1 parent 228e714 commit 05c072f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/remote-promo-sheet/checkForCampaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export const checkForCampaign = async () => {
if (result) {
const isShown = remotePromoSheetsStore.getState().isShown;
if (!isShown) {
return triggerCampaign(promo as PromoSheet);
remotePromoSheetsStore.setState({ isShown: true });
triggerCampaign(promo as PromoSheet);
break;
}
}
}
Expand Down

0 comments on commit 05c072f

Please sign in to comment.