From 3ab2c384f2213762c3d1a391630b604611818d4d Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 23 Feb 2024 00:50:54 -0800 Subject: [PATCH] fix: changelog popup default behaviour --- src/routes/(app)/+layout.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 971caeb6..aa211592 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -184,7 +184,9 @@ } }); - showChangelog.set(localStorage.version !== $config.version); + if ($user.role === 'admin') { + showChangelog.set(localStorage.version !== $config.version); + } await tick(); }