mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 12:18:10 +01:00
Update electrumSettings.js
This commit is contained in:
parent
df51215cc2
commit
46ce262e5f
1 changed files with 6 additions and 5 deletions
|
@ -310,13 +310,14 @@ export default class ElectrumSettings extends Component {
|
|||
(isTorCapable ? ' (' + loc.settings.tor_supported + ')' : '')
|
||||
}
|
||||
value={this.state.host}
|
||||
onChangeText={text =>
|
||||
this.setState({ host: text.trim() }, () => {
|
||||
if (text.endsWith('.onion')) {
|
||||
onChangeText={text => {
|
||||
const host = text.trim();
|
||||
this.setState({ host }, () => {
|
||||
if (host.endsWith('.onion')) {
|
||||
this.useSSLPortToggled(false);
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
}}
|
||||
numberOfLines={1}
|
||||
style={styles.inputText}
|
||||
editable={!this.state.isLoading}
|
||||
|
|
Loading…
Add table
Reference in a new issue