Skip to content

Commit

Permalink
Merge pull request #520 from oraichain/fix-display-receive-swap
Browse files Browse the repository at this point in the history
fix display receive swap
  • Loading branch information
haunv3 authored Jan 2, 2024
2 parents e5fc424 + 22d0995 commit e87c215
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hooks/useTokenFee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ export const useRelayerFeeToken = (originalFromToken: TokenItemType, originalToT
if (isFromToPrefix) return +cur.amount + acc;
return acc;
}, 0);
if (!relayerFeeInOrai) {
setRelayerFeeAmount(0);
setRelayerFeeInOrai(0);
return;
}
setRelayerFeeInOrai(toDisplay(relayerFeeInOrai.toString()));
}, [feeConfig, originalFromToken, originalToToken]);

Expand Down

0 comments on commit e87c215

Please sign in to comment.