mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
FIX: Send Max not working #1797
This commit is contained in:
parent
a4cc81bda5
commit
75b99a1ca3
@ -2582,12 +2582,12 @@ export class BlueBitcoinAmount extends Component {
|
||||
return (
|
||||
<TouchableWithoutFeedback disabled={this.props.pointerEvents === 'none'} onPress={() => this.textInput.focus()}>
|
||||
<View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
|
||||
{!this.props.disabled && <View style={{ alignSelf: 'center', marginLeft: 16, padding: 15 }} />}
|
||||
{!this.props.disabled && <View style={{ alignSelf: 'center', padding: amount === BitcoinUnit.MAX ? 0 : 15 }} />}
|
||||
<View style={{ flex: 1 }}>
|
||||
<View
|
||||
style={{ flexDirection: 'row', alignContent: 'space-between', justifyContent: 'center', paddingTop: 16, paddingBottom: 2 }}
|
||||
>
|
||||
{this.state.unit === BitcoinUnit.LOCAL_CURRENCY && (
|
||||
{this.state.unit === BitcoinUnit.LOCAL_CURRENCY && amount !== BitcoinUnit.MAX && (
|
||||
<Text
|
||||
style={{
|
||||
color: this.props.disabled
|
||||
@ -2670,7 +2670,7 @@ export class BlueBitcoinAmount extends Component {
|
||||
fontSize: amount.length > 10 ? 20 : 36,
|
||||
}}
|
||||
/>
|
||||
{this.state.unit !== BitcoinUnit.LOCAL_CURRENCY && (
|
||||
{this.state.unit !== BitcoinUnit.LOCAL_CURRENCY && amount !== BitcoinUnit.MAX && (
|
||||
<Text
|
||||
style={{
|
||||
color: this.props.disabled
|
||||
@ -2696,7 +2696,7 @@ export class BlueBitcoinAmount extends Component {
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
{!this.props.disabled && (
|
||||
{!this.props.disabled && amount !== BitcoinUnit.MAX && (
|
||||
<TouchableOpacity
|
||||
testID="changeAmountUnitButton"
|
||||
style={{ alignSelf: 'center', marginRight: 16, paddingLeft: 16, paddingVertical: 16 }}
|
||||
|
@ -335,7 +335,7 @@ export class AppStorage {
|
||||
}
|
||||
}
|
||||
realm.close();
|
||||
await WatchConnectivity.sendWalletsToWatch();
|
||||
WatchConnectivity.sendWalletsToWatch();
|
||||
|
||||
const isStorageEncrypted = await this.storageIsEncrypted();
|
||||
if (isStorageEncrypted) {
|
||||
|
Loading…
Reference in New Issue
Block a user