-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Use Max' fixes #1710
'Use Max' fixes #1710
Conversation
…ng insufficient funds error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, QA Passed 👍
Tried with both native and fiat set as my primary currency and tried with both ETH and a few ERC20 tokens to be safe!
const { contractExchangeRates, conversionRate, currentCurrency, ticker } = this.props; | ||
const { internalPrimaryCurrencyIsCrypto } = this.state; | ||
!useMax && this.setState({ maxFiatInput: undefined }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need to be here or it can be put in https://github.com/MetaMask/metamask-mobile/pull/1710/files#diff-3fb35285a1d5260613283030e9e9a32cR756 just to not have two state updates on a method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just one small comment
* SendFlow/Amount: fix amount max not clearing entire account and causing insufficient funds error * SendFlow: fix again * Amount: move maxFiatInput to existing setstate
Description
Checklist
Issue
Resolves #1700
Resolves #1614
https://trello.com/c/jlCqEW9v/181-insufficient-funds-during-use-max-for-transactions
https://trello.com/c/kf9Po3o6/157-send-max-balance-doesnt-wipe-out-the-account-fully