fix getDefaultSafe return type
This commit is contained in:
parent
f8d6ad4ca2
commit
21ae4800c9
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue