mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
FIX: Show alert when unsupported server is attempted to be saved
This commit is contained in:
parent
59efd882ec
commit
c75eaef92c
@ -162,6 +162,11 @@ export default class ElectrumSettings extends Component {
|
||||
const sslPort = this.state.sslPort ? this.state.sslPort : '';
|
||||
const serverHistory = this.state.serverHistory || [];
|
||||
|
||||
if (!isTorCapable && host.endsWith('.onion')) {
|
||||
alert(loc.settings.tor_unsupported);
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState({ isLoading: true }, async () => {
|
||||
try {
|
||||
if (!host && !port && !sslPort) {
|
||||
|
Loading…
Reference in New Issue
Block a user