Default the store values so we don't get undefined appearing in the text entries
This commit is contained in:
parent
ffc759e267
commit
31cd9a1558
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import type { PlayerData } from "common";
|
||||
import { writable } from "svelte/store";
|
||||
|
||||
export const gameCode = writable<string>();
|
||||
export const gameCode = writable<string>("");
|
||||
export const state = writable<string>("main-menu");
|
||||
export const myName = writable<string>();
|
||||
export const myName = writable<string>("");
|
||||
export const isHost = writable<boolean>(false);
|
||||
export const players = writable<PlayerData[]>();
|
||||
Loading…
Add table
Add a link
Reference in a new issue