diff --git a/frontend/apps/battleship-zk/src/features/game/components/voucher-expired-modal/voucher-expired-modal.tsx b/frontend/apps/battleship-zk/src/features/game/components/voucher-expired-modal/voucher-expired-modal.tsx index 4101dd814..72a74c397 100644 --- a/frontend/apps/battleship-zk/src/features/game/components/voucher-expired-modal/voucher-expired-modal.tsx +++ b/frontend/apps/battleship-zk/src/features/game/components/voucher-expired-modal/voucher-expired-modal.tsx @@ -20,17 +20,14 @@ export default function VoucherExpiredModal() { } }, [isVoucherExpired]); - return ( - isOpen && - isVoucherExpired && ( - setIsOpen(false)}> -
- Your voucher has expired and couldn't be used. -
-
+ return isOpen && isVoucherExpired ? ( + setIsOpen(false)}> +
+ Your voucher has expired and couldn't be used. +
+
- - ) - ); +
+
+ ) : null; }