fix getDefaultSafe return type

This commit is contained in:
Mikhail Mikheev 2020-06-23 19:09:24 +04:00
parent f8d6ad4ca2
commit 21ae4800c9
1 changed files with 3 additions and 3 deletions

View File

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