FIX: Send Max not working #1797

This commit is contained in:
marcosrdz 2020-09-15 21:20:48 -04:00 committed by Overtorment
parent a4cc81bda5
commit 75b99a1ca3
2 changed files with 5 additions and 5 deletions

View File

@ -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 }}

View File

@ -335,7 +335,7 @@ export class AppStorage {
}
}
realm.close();
await WatchConnectivity.sendWalletsToWatch();
WatchConnectivity.sendWalletsToWatch();
const isStorageEncrypted = await this.storageIsEncrypted();
if (isStorageEncrypted) {