From 31cd9a15582d03b8813e68b81a89aa252e4e0490 Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Tue, 15 Mar 2022 00:04:43 -0600 Subject: [PATCH] Default the store values so we don't get undefined appearing in the text entries --- web-svelte/src/stores.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-svelte/src/stores.ts b/web-svelte/src/stores.ts index 0bade3b..c7ecc11 100644 --- a/web-svelte/src/stores.ts +++ b/web-svelte/src/stores.ts @@ -1,8 +1,8 @@ import type { PlayerData } from "common"; import { writable } from "svelte/store"; -export const gameCode = writable(); +export const gameCode = writable(""); export const state = writable("main-menu"); -export const myName = writable(); +export const myName = writable(""); export const isHost = writable(false); export const players = writable(); \ No newline at end of file