mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-14 12:04:08 +00:00
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]
|
return storedSafes[safeAddress]
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getDefaultSafe = async () => {
|
export const getDefaultSafe = async (): Promise<string | undefined> => {
|
||||||
const defaultSafe = await loadFromStorage(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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user