fix default safe return

This commit is contained in:
Mikhail Mikheev 2020-06-23 19:57:30 +04:00
parent c925449db2
commit 01358de643
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ export const getLocalSafe = async (safeAddress) => {
return storedSafes[safeAddress] return storedSafes[safeAddress]
} }
export const getDefaultSafe = async (): Promise<string | undefined> => { export const getDefaultSafe = async (): Promise<string> => {
const defaultSafe = await loadFromStorage<string>(DEFAULT_SAFE_KEY) const defaultSafe = await loadFromStorage<string>(DEFAULT_SAFE_KEY)
return defaultSafe return defaultSafe || ''
} }
export const saveDefaultSafe = async (safeAddress) => { export const saveDefaultSafe = async (safeAddress) => {