typo fixeS

This commit is contained in:
mmv 2019-09-24 12:58:30 +04:00
parent 957c06879f
commit 16703e9f01
2 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ export const saveDefaultSafe = async (safeAddress: string): Promise<void> => {
await saveToStorage(DEFAULT_SAFE_KEY, safeAddress)
} catch (err) {
// eslint-disable-next-line
console.error('Error saving default save to storage: ', err)
console.error('Error saving default safe to storage: ', err)
}
}

View File

@ -32,11 +32,11 @@ type RoutesProps = {
}
const Routes = ({ defaultSafe, location }: RoutesProps) => {
const [isInitialLoad, setIniitialLoad] = useState<boolean>(true)
const [isInitialLoad, setInitialLoad] = useState<boolean>(true)
useEffect(() => {
if (location.pathname !== '/') {
setIniitialLoad(false)
setInitialLoad(false)
}
}, [])
@ -54,7 +54,7 @@ const Routes = ({ defaultSafe, location }: RoutesProps) => {
return <Loader />
}
setIniitialLoad(false)
setInitialLoad(false)
if (defaultSafe) {
return <Redirect to={`${SAFELIST_ADDRESS}/${defaultSafe}`} />
}