REF: use allBalance instead of fromWallet.getBalance() in send/details render component

This commit is contained in:
Ivan Vershigora 2020-11-22 11:42:33 +03:00
parent 3ff3ce1906
commit af11aead63

View file

@ -1420,14 +1420,14 @@ export default class SendDetails extends Component {
{Platform.select({ {Platform.select({
ios: ( ios: (
<BlueUseAllFundsButton <BlueUseAllFundsButton
canUseAll={fromWallet.allowSendMax() && fromWallet.getBalance() > 0} canUseAll={fromWallet.allowSendMax() && allBalance > 0}
onUseAllPressed={this.onUseAllPressed} onUseAllPressed={this.onUseAllPressed}
balance={allBalance} balance={allBalance}
/> />
), ),
android: this.state.isAmountToolbarVisibleForAndroid && ( android: this.state.isAmountToolbarVisibleForAndroid && (
<BlueUseAllFundsButton <BlueUseAllFundsButton
canUseAll={fromWallet.allowSendMax() && fromWallet.getBalance() > 0} canUseAll={fromWallet.allowSendMax() && allBalance > 0}
onUseAllPressed={this.onUseAllPressed} onUseAllPressed={this.onUseAllPressed}
balance={allBalance} balance={allBalance}
/> />