Explorar el Código

fixed redirections of private routes

Skylsmoi hace 6 años
padre
commit
d65e5e1ee3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/reducer/user.js

+ 1 - 1
src/reducer/user.js Ver fichero

@@ -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,