mirror of
https://github.com/danbulant/slightlyComplicatedTicTacToe
synced 2026-06-17 05:21:13 +00:00
don't allow starting without people
This commit is contained in:
parent
477e7d370e
commit
bc1592d7d7
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@
|
|||
<input type="text" placeholder="Chat.." bind:value={content} on:submit|preventDefault={sendMessage}>
|
||||
</form>
|
||||
<Button on:click={() => sendMessage()}>Send</Button>
|
||||
{#if $room?.host === $connection?.name}
|
||||
{#if $room?.host === $connection?.name && $players.size > 0}
|
||||
<Button on:click={() => startGame()}>START GAME</Button>
|
||||
{:else}
|
||||
<Button disabled>WAIT TO START</Button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue