mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 13:26:33 +01:00
Revert "Update screen/settings/ElectrumSettings.tsx"
This reverts commit 3fe7a18478
.
This commit is contained in:
parent
3fe7a18478
commit
0a415c64e1
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user