mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 15:20:55 +01:00
REF: use allBalance instead of fromWallet.getBalance() in send/details render component
This commit is contained in:
parent
3ff3ce1906
commit
af11aead63
1 changed files with 2 additions and 2 deletions
|
@ -1420,14 +1420,14 @@ export default class SendDetails extends Component {
|
|||
{Platform.select({
|
||||
ios: (
|
||||
<BlueUseAllFundsButton
|
||||
canUseAll={fromWallet.allowSendMax() && fromWallet.getBalance() > 0}
|
||||
canUseAll={fromWallet.allowSendMax() && allBalance > 0}
|
||||
onUseAllPressed={this.onUseAllPressed}
|
||||
balance={allBalance}
|
||||
/>
|
||||
),
|
||||
android: this.state.isAmountToolbarVisibleForAndroid && (
|
||||
<BlueUseAllFundsButton
|
||||
canUseAll={fromWallet.allowSendMax() && fromWallet.getBalance() > 0}
|
||||
canUseAll={fromWallet.allowSendMax() && allBalance > 0}
|
||||
onUseAllPressed={this.onUseAllPressed}
|
||||
balance={allBalance}
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue