From 2cc5a316750fcd0e85f5e0c57e35f850c592b7f5 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Thu, 24 Dec 2020 05:48:42 +0200 Subject: [PATCH] initial state fix --- src/state/initialState.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/state/initialState.js b/src/state/initialState.js index 20f3db8..97cca47 100644 --- a/src/state/initialState.js +++ b/src/state/initialState.js @@ -1,3 +1,8 @@ +import { getItem } from "../utils/localStorage"; +import { storageKeys } from "../utils/identity"; + +const token = getItem(storageKeys.TOKEN); + export const initialState = { credentials: { userName: "", @@ -5,7 +10,7 @@ export const initialState = { }, security: { authorization: { - token: null + token } }, network: {