initial state fix

master
Tudor Stanciu 2020-12-24 05:48:42 +02:00
parent 0fbf9d3288
commit 2cc5a31675
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
import { getItem } from "../utils/localStorage";
import { storageKeys } from "../utils/identity";
const token = getItem(storageKeys.TOKEN);
export const initialState = { export const initialState = {
credentials: { credentials: {
userName: "", userName: "",
@ -5,7 +10,7 @@ export const initialState = {
}, },
security: { security: {
authorization: { authorization: {
token: null token
} }
}, },
network: { network: {