mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 13:26:33 +01:00
Update screen/settings/ElectrumSettings.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
da48b93929
commit
3fe7a18478
@ -153,6 +153,16 @@ const ElectrumSettings: React.FC = () => {
|
||||
setIsLoading(true);
|
||||
|
||||
try {
|
||||
if (!host) {
|
||||
presentAlert({ message: loc.settings.electrum_host_required });
|
||||
setIsLoading(false);
|
||||
return;
|
||||
}
|
||||
if (!port && !sslPort) {
|
||||
presentAlert({ message: loc.settings.electrum_port_required });
|
||||
setIsLoading(false);
|
||||
return;
|
||||
}
|
||||
if (!host && !port && !sslPort) {
|
||||
await AsyncStorage.removeItem(BlueElectrum.ELECTRUM_HOST);
|
||||
await AsyncStorage.removeItem(BlueElectrum.ELECTRUM_TCP_PORT);
|
||||
|
Loading…
Reference in New Issue
Block a user