From c5697242ee7cef2cb9d2949a10d4efc533684401 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 24 Feb 2021 19:17:18 +0100 Subject: [PATCH] Fixed refresh page reload bug ref #82 --- src/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.js b/src/store.js index 20ca595b..c89a8fff 100644 --- a/src/store.js +++ b/src/store.js @@ -28,7 +28,7 @@ const store = () => { const jwtinfo = JSON.parse(atob(auth.access_token.split('.')[1])); state.jwtinfo = jwtinfo; localForage.setItem('logindata', auth); - }).catch(this.logout()); + }).catch(()=>{this.logout();}); }, login(auth, jwtinfo) { update((state) => {