OSDN Git Service

fixed the localStorage erro
authorZhiting Lin <zlin035@uottawa.ca>
Wed, 14 Mar 2018 08:19:02 +0000 (16:19 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Wed, 14 Mar 2018 08:19:02 +0000 (16:19 +0800)
src/utility/localStorage.js

index db2d515..631bf2f 100644 (file)
@@ -16,11 +16,11 @@ export const exportState = (store) => () => {
       // requirement, we won't need to store these anymore.
       requireClientToken: (state.core || {}).requireClientToken,
       validToken: (state.core || {}).validToken,
-      btmAmountUnit: (state.core || {}).btmAmountUnit,
-      lang: (state.core || {}).lang
+      btmAmountUnit: state.core.btmAmountUnit,
+      lang: state.core.lang
     },
     app:{
-      navAdvancedState : (state.app || {}).navAdvancedState,
+      navAdvancedState : state.app.navAdvancedState,
     },
     transaction: {
       generated: (state.transaction || {}).generated,