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({
|
{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}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue