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
8dee980946
commit
da48b93929
@ -278,9 +278,14 @@ const ElectrumSettings: React.FC = () => {
|
|||||||
|
|
||||||
const checkServer = async () => {
|
const checkServer = async () => {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
const features = await BlueElectrum.serverFeatures();
|
try {
|
||||||
triggerHapticFeedback(HapticFeedbackTypes.NotificationWarning);
|
const features = await BlueElectrum.serverFeatures();
|
||||||
presentAlert({ message: JSON.stringify(features, null, 2) });
|
triggerHapticFeedback(HapticFeedbackTypes.NotificationWarning);
|
||||||
|
presentAlert({ message: JSON.stringify(features, null, 2) });
|
||||||
|
} catch (error) {
|
||||||
|
triggerHapticFeedback(HapticFeedbackTypes.NotificationError);
|
||||||
|
presentAlert({ message: loc.settings.electrum_server_error });
|
||||||
|
}
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user