Skip to content

Commit

Permalink
feat: dont let join without a name
Browse files Browse the repository at this point in the history
  • Loading branch information
rsproule committed Jan 2, 2024
1 parent 0fc627d commit a5999d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function WaitingForPlayers({
address: gameAddress,
args: [{ joiner: address!, proof: proof, playerName: playerName }],
value: BigInt(0),
enabled: !!playerName,
});
let { toast } = useToast();
let numPlayers = useTankGamePlayersCount({
Expand Down Expand Up @@ -89,7 +90,6 @@ export function WaitingForPlayers({
onClick={() => {
write?.();
refetch?.();

}}
disabled={!write}
>
Expand Down

0 comments on commit a5999d4

Please sign in to comment.