mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 13:26:33 +01:00
Update ElectrumSettings.tsx
This commit is contained in:
parent
ed27cc5c14
commit
3ab609e074
@ -321,9 +321,14 @@ const ElectrumSettings: React.FC = () => {
|
||||
|
||||
const onElectrumConnectionEnabledSwitchChange = async (value: boolean) => {
|
||||
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
||||
triggerSelectionHapticFeedback();
|
||||
await BlueElectrum.setDisabled(value);
|
||||
setIsElectrumDisabled(value);
|
||||
try {
|
||||
triggerSelectionHapticFeedback();
|
||||
await BlueElectrum.setDisabled(value);
|
||||
setIsElectrumDisabled(value);
|
||||
} catch (error) {
|
||||
triggerHapticFeedback(HapticFeedbackTypes.NotificationError);
|
||||
presentAlert({ message: (error as Error).message });
|
||||
}
|
||||
};
|
||||
|
||||
const renderElectrumSettings = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user