Default the store values so we don't get undefined appearing in the text entries

This commit is contained in:
Oliver Akins 2022-03-15 00:04:43 -06:00
parent ffc759e267
commit 31cd9a1558
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -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[]>();