From a770171f621b96e6f0077b305bdc8d2df1911063 Mon Sep 17 00:00:00 2001 From: ellielle <40385743+ellielle@users.noreply.github.com> Date: Thu, 20 Jun 2024 15:06:28 -0400 Subject: [PATCH] small fix to the timer --- frontend/src/components/UI/Inventory.svelte | 6 ++++-- frontend/src/components/UI/Tabs.svelte | 2 ++ main.go | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/UI/Inventory.svelte b/frontend/src/components/UI/Inventory.svelte index e776c1f..601bbc4 100644 --- a/frontend/src/components/UI/Inventory.svelte +++ b/frontend/src/components/UI/Inventory.svelte @@ -19,7 +19,7 @@ timer = `${minutes}:${seconds}`; } - let timer = null; + let timer = ""; let endTime; onMount(() => { @@ -51,7 +51,9 @@
-
{timer !== null ? timer : "00:00"}
+
+ {timer !== "" && !timer.includes("NaN") ? timer : "00:00"} +
Sign out
+ +
diff --git a/main.go b/main.go index 6a116d4..491b5cc 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,7 @@ func main() { err := wails.Run(&options.App{ Title: "Boot.dev Buddy", Width: 900, - Height: 600, + Height: 720, StartHidden: true, // Set to true to remove border Frameless: true,