Skip to content

Commit

Permalink
classic off by one error
Browse files Browse the repository at this point in the history
  • Loading branch information
Govorunb committed Jun 10, 2024
1 parent e907641 commit 7f4bd86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/www/src/modules/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function openModal(redeem: Redeem | null) {
const config = await getConfig();

const announceType = redeem.announce || AnnounceType.DefaultAnnounce;
const defaultAnnounce = !(announceType & 2);
const defaultAnnounce = !(announceType & 1);

cart = { version: config.version, sku: redeem.sku, id: redeem.id, args: {}, announce: defaultAnnounce };

Expand Down

0 comments on commit 7f4bd86

Please sign in to comment.