Просмотр исходного кода

fixed redirections of private routes

Skylsmoi 6 лет назад
Родитель
Сommit
d65e5e1ee3
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1 1
      src/reducer/user.js

+ 1 - 1
src/reducer/user.js Просмотреть файл

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