Skip to content

Commit

Permalink
fix send page race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ezra-sg committed Jun 6, 2023
1 parent 14c587c commit f66daac
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pages/evm/wallet/SendPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ export default defineComponent({
isLoading(): boolean {
return ant.stores.feedback.isLoading('transferTokens');
},
configIsLoading() {
let config;
if (this.token?.isSystem) {
config = balanceStore.__wagmiSystemTokenTransferConfig['logged'];
} else {
config = balanceStore.__wagmiTokenTransferConfig['logged'];
}
return this.isFormValid && !config;
},
currencyInputIsLoading() {
return !(this.token?.decimals && this.token?.symbol) || this.isLoading;
},
Expand Down Expand Up @@ -389,7 +399,7 @@ export default defineComponent({
color="primary"
class="wallet-btn"
:label="$t('evm_wallet.send')"
:loading="isLoading"
:loading="isLoading || configIsLoading"
:disable="!isFormValid || isLoading"
@click="startTransfer"
/>
Expand Down

0 comments on commit f66daac

Please sign in to comment.