Skip to content

Commit

Permalink
fix zk-battleship deploy (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-nayaka authored Aug 23, 2024
1 parent c07ca78 commit a19abd1
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@ export default function VoucherExpiredModal() {
}
}, [isVoucherExpired]);

return (
isOpen &&
isVoucherExpired && (
<ModalBottom heading="Voucher Expired" onClose={() => setIsOpen(false)}>
<div className={styles.content}>
<Text>Your voucher has expired and couldn't be used.</Text>
<div className={styles.buttons}>
<Button color="dark" text="Exit" onClick={() => setIsOpen(false)} />
</div>
return isOpen && isVoucherExpired ? (
<ModalBottom heading="Voucher Expired" onClose={() => setIsOpen(false)}>
<div className={styles.content}>
<Text>Your voucher has expired and couldn't be used.</Text>
<div className={styles.buttons}>
<Button color="dark" text="Exit" onClick={() => setIsOpen(false)} />
</div>
</ModalBottom>
)
);
</div>
</ModalBottom>
) : null;
}

0 comments on commit a19abd1

Please sign in to comment.