From b9bc643af0d0523a70d76236d9277539da083b36 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Fri, 21 Feb 2025 16:35:56 -0500
Subject: Add missing awaits on goto() calls

---
 ui/routes/(app)/+layout.svelte | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'ui/routes/(app)/+layout.svelte')

diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte
index dff9245..a81efce 100644
--- a/ui/routes/(app)/+layout.svelte
+++ b/ui/routes/(app)/+layout.svelte
@@ -2,11 +2,11 @@
   import { page } from '$app/stores';
   import { goto } from '$app/navigation';
   import { browser } from '$app/environment';
-  import { onMount, onDestroy, getContext } from 'svelte';
+  import { getContext, onDestroy, onMount } from 'svelte';
   import TinyGesture from 'tinygesture';
 
   import { boot, subscribeToEvents } from '$lib/apiServer';
-  import { currentUser, logins, channelsList, messages, onEvent } from '$lib/store';
+  import { channelsList, currentUser, logins, messages, onEvent } from '$lib/store';
 
   import ChannelList from '$lib/components/ChannelList.svelte';
   import CreateChannelForm from '$lib/components/CreateChannelForm.svelte';
@@ -76,11 +76,11 @@
         break;
       case 401:
         currentUser.set(null);
-        goto('/login');
+        await goto('/login');
         break;
       case 503:
         currentUser.set(null);
-        goto('/setup');
+        await goto('/setup');
         break;
       default:
         // TODO: display error.
-- 
cgit v1.2.3

