Skip to content

Commit

Permalink
small fix to the timer
Browse files Browse the repository at this point in the history
  • Loading branch information
ellielle committed Jun 20, 2024
1 parent c7d917f commit a770171
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions frontend/src/components/UI/Inventory.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
timer = `${minutes}:${seconds}`;
}
let timer = null;
let timer = "";
let endTime;
onMount(() => {
Expand Down Expand Up @@ -51,7 +51,9 @@

<main>
<div class="flex items-center">
<div id="timer">{timer !== null ? timer : "00:00"}</div>
<div id="timer">
{timer !== "" && !timer.includes("NaN") ? timer : "00:00"}
</div>
<div class="mx-4 flex">
<img
src="src/assets/images/xppotion.webp"
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/UI/Tabs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
<button on:click={handleSignout}>Sign out</button>
</div>

<!-- FIXME: X button needs to be available at all times -->

<div>
<button on:click={handleClose}>✗</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a770171

Please sign in to comment.