From a139da394ffbbf44cbaf406617fb12d45d2f4b78 Mon Sep 17 00:00:00 2001 From: nicolas Date: Mon, 12 Apr 2021 11:50:59 -0300 Subject: [PATCH] Add missing dependency (#2157) --- src/logic/safe/hooks/useLoadSafe.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic/safe/hooks/useLoadSafe.tsx b/src/logic/safe/hooks/useLoadSafe.tsx index 8e4541b2..8a603a9f 100644 --- a/src/logic/safe/hooks/useLoadSafe.tsx +++ b/src/logic/safe/hooks/useLoadSafe.tsx @@ -28,10 +28,10 @@ export const useLoadSafe = (safeAddress?: string, loadedViaUrl = true): boolean } } } - dispatch(loadAddressBookFromStorage()) + dispatch(loadAddressBookFromStorage()) fetchData() - }, [dispatch, safeAddress]) + }, [dispatch, safeAddress, loadedViaUrl]) return isSafeLoaded }