Skip to content

Commit

Permalink
fix(bridge-ui): custom and none fee selection overwritten by error fe…
Browse files Browse the repository at this point in the history
…tching recommended fee (#16737)
  • Loading branch information
CodeDragonVN authored Apr 16, 2024
1 parent a10b776 commit 9166ee3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<span class=" text-primary-content mt-[4px]">
{#if calculatingRecommendedAmount}
<LoadingText mask="0.0017730224073" /> ETH
{:else if errorCalculatingRecommendedAmount}
{:else if errorCalculatingRecommendedAmount && $processingFeeMethod === ProcessingFeeMethod.RECOMMENDED}
<FlatAlert type="warning" message={$t('processing_fee.recommended.error')} />
{:else}
{formatEther($processingFee ?? BigInt(0))} ETH {#if $processingFee !== recommendedAmount}
Expand All @@ -152,7 +152,7 @@
<span class="text-primary-content mt-[4px] {$$props.class}">
{#if calculatingRecommendedAmount}
<LoadingText mask="0.0017730224073" />
{:else if errorCalculatingRecommendedAmount}
{:else if errorCalculatingRecommendedAmount && $processingFeeMethod === ProcessingFeeMethod.RECOMMENDED}
<span class="text-warning-sentiment">{$t('processing_fee.recommended.error')}</span>
{:else}
{formatEther($processingFee ?? BigInt(0))} ETH {#if $processingFee !== recommendedAmount}
Expand All @@ -178,7 +178,7 @@
<span class="body-small-regular text-secondary-content mt-[4px]">
{#if calculatingRecommendedAmount}
<LoadingText mask="0.0001" /> ETH
{:else if errorCalculatingRecommendedAmount}
{:else if errorCalculatingRecommendedAmount && $processingFeeMethod === ProcessingFeeMethod.RECOMMENDED}
<FlatAlert type="warning" message={$t('processing_fee.recommended.error')} />
{:else}
{formatEther($processingFee ?? BigInt(0))} ETH {#if $processingFee !== recommendedAmount}
Expand Down

0 comments on commit 9166ee3

Please sign in to comment.