Skip to content

Commit

Permalink
fix: use optional params for deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kallen-ledger committed Sep 6, 2024
1 parent 0450315 commit 587817b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ const SwapWebView = ({ manifest, liveAppUnavailable }: SwapWebProps) => {
}
: {}),
}).toString(),
[isOffline, state.defaultAccount, state.defaultParentAccount, walletState],
[isOffline, state?.defaultAccount, state?.defaultParentAccount, walletState],
);

const onSwapWebviewError = (error?: SwapLiveError) => {
Expand Down

0 comments on commit 587817b

Please sign in to comment.