File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/components/transactions Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -308,10 +308,14 @@ export default defineComponent({
308
308
309
309
const { cryptoTransferDecimals, decimals } = CryptosInfo [commissionTokenLabel ]
310
310
311
- const tokenFee =
312
- props .queryStatus === ' success' && typeof props .fee === ' number'
313
- ? ` ${formatAmount (props .fee , cryptoTransferDecimals ?? decimals )} ${commissionTokenLabel } `
314
- : placeholder .value
311
+ const isShouldShowFee =
312
+ typeof props .fee === ' number' &&
313
+ ((props .queryStatus === ' success' && props .fee > 0 ) ||
314
+ props .transactionStatus === ' CONFIRMED' )
315
+
316
+ const tokenFee = isShouldShowFee
317
+ ? ` ${formatAmount (props .fee , cryptoTransferDecimals ?? decimals )} ${commissionTokenLabel } `
318
+ : placeholder .value
315
319
316
320
if (! props .fee || ! calculatedTimestampInSec .value ) return tokenFee
317
321
You can’t perform that action at this time.
0 commit comments