FIX: Show alert when unsupported server is attempted to be saved

This commit is contained in:
Marcos Rodriguez Vélez 2022-01-01 09:13:55 -06:00
parent 59efd882ec
commit c75eaef92c
No known key found for this signature in database
GPG Key ID: 0D64671698D11C5C

View File

@ -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) {