Revert "Update screen/settings/ElectrumSettings.tsx"

This reverts commit 3fe7a18478.
This commit is contained in:
Marcos Rodriguez Velez 2024-10-16 00:07:42 -04:00
parent 3fe7a18478
commit 0a415c64e1

View File

@ -153,16 +153,6 @@ const ElectrumSettings: React.FC = () => {
setIsLoading(true); setIsLoading(true);
try { 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) { if (!host && !port && !sslPort) {
await AsyncStorage.removeItem(BlueElectrum.ELECTRUM_HOST); await AsyncStorage.removeItem(BlueElectrum.ELECTRUM_HOST);
await AsyncStorage.removeItem(BlueElectrum.ELECTRUM_TCP_PORT); await AsyncStorage.removeItem(BlueElectrum.ELECTRUM_TCP_PORT);