We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da4ca03 commit 2ffc0a8Copy full SHA for 2ffc0a8
1 file changed
src/lib/NavigationBar/NavigationBar.svelte
@@ -1,7 +1,7 @@
1
<script>
2
import { onMount } from "svelte";
3
import { page } from "$app/stores";
4
- import { browser } from '$app/environment';
+ import { browser } from "$app/environment";
5
6
import { PUBLIC_API_URL, PUBLIC_STUDIO_URL } from "$env/static/public";
7
@@ -121,11 +121,14 @@
121
122
function logout() {
123
accountMenu.style.display = "none";
124
- Authentication.logout().then(() => {
125
- loggedIn = false;
126
- canRankUp = false;
127
- messageCount = 0;
128
- });
+ Authentication.logout()
+ .then(() => {
+ loggedIn = false;
+ canRankUp = false;
+ messageCount = 0;
129
+ location.reload();
130
+ })
131
+ .catch(() => location.reload());
132
}
133
function login() {
134
Authentication.authenticate(false);
0 commit comments