Skip to content

Commit

Permalink
fix: use safeAddress variable
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Sep 20, 2023
1 parent fd3bd59 commit 9b72df8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tx-flow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const TxModalProvider = ({ children }: { children: ReactNode }): ReactEle
const [fullWidth, setFullWidth] = useState<boolean>(false)
const pathname = usePathname()
const [, setLastPath] = useState<string>(pathname)
const { safe } = useSafeInfo()
const { safeAddress, safe } = useSafeInfo()

const handleModalClose = useCallback(() => {
setOnClose((prevOnClose) => {
Expand Down Expand Up @@ -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 (
<TxModalContext.Provider value={{ txFlow, setTxFlow, setFullWidth }}>
Expand Down

0 comments on commit 9b72df8

Please sign in to comment.