typo fixeS
This commit is contained in:
parent
957c06879f
commit
16703e9f01
|
@ -54,7 +54,7 @@ export const saveDefaultSafe = async (safeAddress: string): Promise<void> => {
|
||||||
await saveToStorage(DEFAULT_SAFE_KEY, safeAddress)
|
await saveToStorage(DEFAULT_SAFE_KEY, safeAddress)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
console.error('Error saving default save to storage: ', err)
|
console.error('Error saving default safe to storage: ', err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,11 +32,11 @@ type RoutesProps = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const Routes = ({ defaultSafe, location }: RoutesProps) => {
|
const Routes = ({ defaultSafe, location }: RoutesProps) => {
|
||||||
const [isInitialLoad, setIniitialLoad] = useState<boolean>(true)
|
const [isInitialLoad, setInitialLoad] = useState<boolean>(true)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (location.pathname !== '/') {
|
if (location.pathname !== '/') {
|
||||||
setIniitialLoad(false)
|
setInitialLoad(false)
|
||||||
}
|
}
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ const Routes = ({ defaultSafe, location }: RoutesProps) => {
|
||||||
return <Loader />
|
return <Loader />
|
||||||
}
|
}
|
||||||
|
|
||||||
setIniitialLoad(false)
|
setInitialLoad(false)
|
||||||
if (defaultSafe) {
|
if (defaultSafe) {
|
||||||
return <Redirect to={`${SAFELIST_ADDRESS}/${defaultSafe}`} />
|
return <Redirect to={`${SAFELIST_ADDRESS}/${defaultSafe}`} />
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue