Skip to content

Commit

Permalink
fix: max
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Oct 25, 2024
1 parent 40bd773 commit fe108b6
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/modules/buy-sell/components/SellComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ import { isEmpty, debounce, isNumber, isEqual } from 'lodash';
import BigNumber from 'bignumber.js';
import { fromWei, toBN } from 'web3-utils';
import WALLET_TYPES from '@/modules/access-wallet/common/walletTypes';
import { ERROR, Toast } from '@/modules/toast/handler/handlerToast';
import handlerSend from '@/modules/send/handlers/handlerSend.js';
import { MAIN_TOKEN_ADDRESS } from '@/core/helpers/common.js';
Expand Down Expand Up @@ -200,9 +199,7 @@ export default {
? {
title: 'Max',
method: this.setMax,
disabled:
this.nonMainnetMetamask ||
BigNumber(this.txFee).gte(this.selectedBalance)
disabled: BigNumber(this.txFee).gte(this.selectedBalance)
}
: {};
},
Expand Down Expand Up @@ -301,11 +298,6 @@ export default {
return '';
},
nonMainnetMetamask() {
return (
this.instance && this.instance.identifier === WALLET_TYPES.WEB3_WALLET
);
},
isValidAmount() {
/** !amount */
if (!this.amount) {
Expand Down Expand Up @@ -358,6 +350,9 @@ export default {
}
},
watch: {
selectedBalance() {
console.log('selectedBalance', this.selectedBalance);
},
toAddress() {
this.amount = '0';
},
Expand Down

0 comments on commit fe108b6

Please sign in to comment.