Skip to content

Commit

Permalink
fix white page error (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorian1te authored May 3, 2024
1 parent e148d09 commit 355b341
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Fix Arb Approval [#210](https://github.com/asgardex/asgardex-desktop/pull/210)
- Remove BNB Bep2Chain & Client [#199](https://github.com/asgardex/asgardex-desktop/pull/200)
- Fix Quote swap White page error [#216](https://github.com/asgardex/asgardex-desktop/pull/216)

# 1.21.6 (2024-04-24)

Expand Down
4 changes: 4 additions & 0 deletions src/renderer/components/swap/Swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2094,6 +2094,10 @@ export const Swap = ({
return <></>
}

if (lockedWallet) {
return <></>
}

const error = quoteErrors[0].split(':')
const assetPart = error[2].split('(')[1]?.split(')')[0]
if (!lockedWallet && assetPart === `${targetAsset.chain}.${targetAsset.symbol}`) {
Expand Down

0 comments on commit 355b341

Please sign in to comment.