mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-21 16:52:06 -07:00
Merge pull request #148 from Permissionless-Software-Foundation/dh-fix-redux
fix(redux): Fixed gatsby-ipfs-web-wallet redux error
This commit is contained in:
+14
-11
@@ -116,15 +116,18 @@ const initialState = {
|
||||
data: null
|
||||
}
|
||||
}
|
||||
|
||||
const createStore = () =>
|
||||
reduxCreateStore(
|
||||
reducer,
|
||||
initialState,
|
||||
/** Redux DevTools
|
||||
* https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=es
|
||||
*
|
||||
*/
|
||||
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
|
||||
)
|
||||
let createStore
|
||||
typeof window !== 'undefined'
|
||||
? (createStore = () =>
|
||||
reduxCreateStore(
|
||||
reducer,
|
||||
initialState,
|
||||
/** Redux DevTools
|
||||
* https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=es
|
||||
*
|
||||
*/
|
||||
window.__REDUX_DEVTOOLS_EXTENSION__ &&
|
||||
window.__REDUX_DEVTOOLS_EXTENSION__()
|
||||
))
|
||||
: (createStore = () => reduxCreateStore(reducer, initialState))
|
||||
export default createStore
|
||||
|
||||
Reference in New Issue
Block a user