From 6d6b2e4f62fc5fcb84c1b7c9c162187bda1db3b6 Mon Sep 17 00:00:00 2001 From: Jeremy Valentine <38669521+valentine195@users.noreply.github.com> Date: Thu, 30 Mar 2023 13:58:50 -0400 Subject: [PATCH] fix: fixes Nav error if previous month is undefined --- src/view/ui/Nav.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view/ui/Nav.svelte b/src/view/ui/Nav.svelte index 629fe24..6475552 100644 --- a/src/view/ui/Nav.svelte +++ b/src/view/ui/Nav.svelte @@ -18,6 +18,7 @@ }); let previous = calendar.getPreviousMonth(); + $: prevousLabel = previous?.name ?? "No Previous Month"; let next = calendar.getNextMonth(); calendar.on("month-update", () => { @@ -48,7 +49,7 @@