From 9b72df89505868a11025f1133ca072209b11c8f6 Mon Sep 17 00:00:00 2001 From: iamacook Date: Wed, 20 Sep 2023 09:05:51 +0200 Subject: [PATCH] fix: use `safeAddress` variable --- src/components/tx-flow/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tx-flow/index.tsx b/src/components/tx-flow/index.tsx index 180b802277..eebcbb0338 100644 --- a/src/components/tx-flow/index.tsx +++ b/src/components/tx-flow/index.tsx @@ -24,7 +24,7 @@ export const TxModalProvider = ({ children }: { children: ReactNode }): ReactEle const [fullWidth, setFullWidth] = useState(false) const pathname = usePathname() const [, setLastPath] = useState(pathname) - const { safe } = useSafeInfo() + const { safeAddress, safe } = useSafeInfo() const handleModalClose = useCallback(() => { setOnClose((prevOnClose) => { @@ -70,7 +70,7 @@ export const TxModalProvider = ({ children }: { children: ReactNode }): ReactEle handleModalClose() // Could have same address but different chain // eslint-disable-next-line react-hooks/exhaustive-deps - }, [safe.chainId, safe.address.value]) + }, [safe.chainId, safeAddress]) return (