Skip to content

Commit

Permalink
fix: disable token select while fee is loading to prevent fee overrid…
Browse files Browse the repository at this point in the history
…es (#191)
  • Loading branch information
Romsters authored Aug 30, 2024
1 parent fc40ba3 commit 3884936
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/common/input/TransactionAmount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
class="h-max"
:toggled="selectTokenModalOpened"
variant="light"
:disabled="loading"
@click="selectTokenModalOpened = true"
>
<template #left-icon>
Expand Down
2 changes: 1 addition & 1 deletion views/transactions/Deposit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
:balances="availableBalances"
:max-amount="maxAmount"
:approve-required="!enoughAllowance && (!tokenCustomBridge || !tokenCustomBridge.bridgingDisabled)"
:loading="tokensRequestInProgress || balanceInProgress"
:loading="tokensRequestInProgress || balanceInProgress || feeLoading"
class="mb-block-padding-1/2 sm:mb-block-gap"
>
<template #dropdown>
Expand Down
2 changes: 1 addition & 1 deletion views/transactions/Transfer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
:tokens="availableTokens"
:balances="availableBalances"
:max-amount="maxAmount"
:loading="tokensRequestInProgress || balanceInProgress"
:loading="tokensRequestInProgress || balanceInProgress || feeLoading"
>
<template v-if="type === 'withdrawal' && account.address" #token-dropdown-bottom>
<CommonAlert class="sticky bottom-0 mt-6" variant="neutral" :icon="InformationCircleIcon">
Expand Down

0 comments on commit 3884936

Please sign in to comment.