diff --git a/src/routes/index.tsx b/src/routes/index.tsx
index e8b8e6a9..b9776171 100644
--- a/src/routes/index.tsx
+++ b/src/routes/index.tsx
@@ -7,6 +7,7 @@ import { LOAD_ADDRESS, OPEN_ADDRESS, SAFELIST_ADDRESS, SAFE_PARAM_ADDRESS, WELCO
import Loader from 'src/components/Loader'
import { defaultSafeSelector } from 'src/routes/safe/store/selectors'
import { useAnalytics } from 'src/utils/googleAnalytics'
+import { DEFAULT_SAFE_INITIAL_STATE } from 'src/routes/safe/store/reducer/safe'
const Welcome = React.lazy(() => import('./welcome/container'))
@@ -44,7 +45,7 @@ const Routes = ({ location }) => {
return
}
- if (typeof defaultSafe === 'undefined') {
+ if (defaultSafe === DEFAULT_SAFE_INITIAL_STATE) {
return
}
diff --git a/src/routes/safe/store/reducer/safe.ts b/src/routes/safe/store/reducer/safe.ts
index 73e9c55e..8b3e23ec 100644
--- a/src/routes/safe/store/reducer/safe.ts
+++ b/src/routes/safe/store/reducer/safe.ts
@@ -16,6 +16,7 @@ import makeSafe from 'src/routes/safe/store/models/safe'
import { checksumAddress } from 'src/utils/checksumAddress'
export const SAFE_REDUCER_ID = 'safes'
+export const DEFAULT_SAFE_INITIAL_STATE = 'NOT_ASKED'
export const buildSafe = (storedSafe) => {
const names = storedSafe.owners.map((owner) => owner.name)
@@ -125,10 +126,8 @@ export default handleActions(
[SET_LATEST_MASTER_CONTRACT_VERSION]: (state, action) => state.set('latestMasterContractVersion', action.payload),
},
Map({
- // $FlowFixMe
- defaultSafe: undefined,
+ defaultSafe: DEFAULT_SAFE_INITIAL_STATE,
safes: Map(),
- // $FlowFixMe
latestMasterContractVersion: '',
}),
)