Add missing dependency (#2157)

This commit is contained in:
nicolas 2021-04-12 11:50:59 -03:00 committed by GitHub
parent ba12ac69e9
commit a139da394f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,10 +28,10 @@ export const useLoadSafe = (safeAddress?: string, loadedViaUrl = true): boolean
} }
} }
} }
dispatch(loadAddressBookFromStorage())
dispatch(loadAddressBookFromStorage())
fetchData() fetchData()
}, [dispatch, safeAddress]) }, [dispatch, safeAddress, loadedViaUrl])
return isSafeLoaded return isSafeLoaded
} }