Selaa lähdekoodia

fixed redirections of private routes

Skylsmoi 6 vuotta sitten
vanhempi
commit
d65e5e1ee3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/reducer/user.js

+ 1 - 1
src/reducer/user.js Näytä tiedosto

@@ -6,7 +6,7 @@ import {
6 6
 
7 7
 const defaultUser = {
8 8
   user_id: -1,
9
-  logged: false,
9
+  logged: undefined, // undefined avoid to be redirected to /login while whoami ep has not responded yet
10 10
   timezone: '',
11 11
   profile: {
12 12
     id: 1,