mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-17 12:07:09 +00:00
fix default safe return
This commit is contained in:
parent
c925449db2
commit
01358de643
@ -27,10 +27,10 @@ export const getLocalSafe = async (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)
|
||||
|
||||
return defaultSafe
|
||||
return defaultSafe || ''
|
||||
}
|
||||
|
||||
export const saveDefaultSafe = async (safeAddress) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user