Skip to content

Commit

Permalink
fix: gas fee limit tips
Browse files Browse the repository at this point in the history
  • Loading branch information
jinming0618 committed Dec 31, 2024
1 parent 1f32ad6 commit b3a3352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/views/GasAccount/components/WithdrawPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -452,11 +452,11 @@ const WithdrawContent = ({
return '';
}

if (chain.withdraw_limit < chain.withdraw_fee) {
const withdrawTotal = Math.min(balance, chain.withdraw_limit);
if (withdrawTotal < chain.withdraw_fee) {
return t('page.gasAccount.withdrawPopup.noEnoughGas');
}

const withdrawTotal = Math.min(balance, chain.withdraw_limit);
if (withdrawTotal > chain.l1_balance) {
return t('page.gasAccount.withdrawPopup.noEnoughValuetBalance');
}
Expand Down

0 comments on commit b3a3352

Please sign in to comment.