From 579928273b3c3456b958ffbaa8ce049ed81337f5 Mon Sep 17 00:00:00 2001 From: Martin Homola Date: Tue, 3 Dec 2024 14:12:02 +0100 Subject: [PATCH] fix(trade): all balance for tokens --- .../suite/src/hooks/wallet/useCoinmarketRecomposeAndSign.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/suite/src/hooks/wallet/useCoinmarketRecomposeAndSign.ts b/packages/suite/src/hooks/wallet/useCoinmarketRecomposeAndSign.ts index b18174da3b5..0c6980c23a1 100644 --- a/packages/suite/src/hooks/wallet/useCoinmarketRecomposeAndSign.ts +++ b/packages/suite/src/hooks/wallet/useCoinmarketRecomposeAndSign.ts @@ -67,7 +67,7 @@ export const useCoinmarketRecomposeAndSign = () => { token: ethereumDataHex ? null : composed.token?.contract || null, // if we pass ethereumDataHex, do not use the token, the details are in the ethereumDataHex }, ], - setMaxOutputId, + setMaxOutputId: !composed.token?.contract ? setMaxOutputId : undefined, selectedFee, feePerUnit: composed.feePerByte, feeLimit: composed.feeLimit || '',