From 0bba0b5281245e994397459294b3ecf2e3d0c4ec Mon Sep 17 00:00:00 2001 From: Tuditi Date: Wed, 15 Nov 2023 13:32:28 +0100 Subject: [PATCH] fix: always set targetAmount --- .../components/wallet-deeplink/wallet-deeplink.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/wallet-deeplink/wallet-deeplink.component.ts b/src/app/components/wallet-deeplink/wallet-deeplink.component.ts index 402b506..0a4d70d 100644 --- a/src/app/components/wallet-deeplink/wallet-deeplink.component.ts +++ b/src/app/components/wallet-deeplink/wallet-deeplink.component.ts @@ -97,8 +97,7 @@ export class WalletDeeplinkComponent { // Shimmer Network const parameters = { address: this.targetAddress, - baseCoinAmount: - this.tokenId && this.surplus ? Number(this.targetAmount).toFixed(0) : undefined, + baseCoinAmount: Number(this.targetAmount ?? 0).toFixed(0), tokenId: this.tokenId, tokenAmount: this.tokenId ? this.tokenAmount : undefined, tag: WEN_NAME.toLowerCase(),