Skip to content

Commit

Permalink
fix: use optional param for defaultAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
kallen-ledger committed Sep 6, 2024
1 parent 8eacdad commit 363377f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ const SwapWebView = ({ manifest, liveAppUnavailable }: SwapWebProps) => {
() =>
new URLSearchParams({
...(isOffline ? { isOffline: "true" } : {}),
...(state.defaultAccount
...(state?.defaultAccount
? {
fromAccountId: accountToWalletAPIAccount(
walletState,
state.defaultAccount,
state.defaultParentAccount,
state?.defaultParentAccount,
).id,
}
: {}),
Expand Down

0 comments on commit 363377f

Please sign in to comment.