diff --git a/src/modules/game/components/Table/Table.tsx b/src/modules/game/components/Table/Table.tsx index 713a7bd..d85f694 100644 --- a/src/modules/game/components/Table/Table.tsx +++ b/src/modules/game/components/Table/Table.tsx @@ -102,6 +102,8 @@ export const Table = ({ contract, account, players }: TableProps) => { setDealInProgress(false); }; + const inGame = players.some((p) => p.address === account); + return (
Cipher Bomb @@ -115,7 +117,7 @@ export const Table = ({ contract, account, players }: TableProps) => {
Current turn: {currentTurn + 1} ({5 - currentTurn} cards)

- {dealIsNeeded && ( + {inGame && dealIsNeeded && (
)}
-
-
- Your role -

- -

+ {inGame && ( +
+
+ Your role +

+ +

+
-
+ )}