fix commission preview
This commit is contained in:
@@ -109,6 +109,8 @@ export function SwapForm() {
|
||||
? trxQuoteData?.fees.network.amountUsd?.toString()
|
||||
: quoteData?.fees.gas.amountUsd
|
||||
|
||||
const serviceFee = quoteData?.appCommission?.usd?.toString()
|
||||
|
||||
const isButtonDisabled = isTrxNetwork
|
||||
? parsedAmount <= 0 || isFetchingTrxQuote
|
||||
: !quotePayload || isSwapping
|
||||
@@ -153,7 +155,7 @@ export function SwapForm() {
|
||||
onTokenChange={setToToken}
|
||||
/>
|
||||
|
||||
<SwapInfoPanel gasFee={gasFee} />
|
||||
<SwapInfoPanel gasFee={gasFee} serviceFee={serviceFee} />
|
||||
|
||||
<PrimaryButton
|
||||
label={isSwapping || isFetchingTrxQuote ? 'Загрузка...' : undefined}
|
||||
|
||||
Reference in New Issue
Block a user