FIX: Haptic feedback on password error

This commit is contained in:
Marcos Rodriguez Velez 2024-02-09 12:25:09 -04:00
parent 939ee44e0b
commit e5de406bf5
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

View File

@ -53,8 +53,8 @@ const EncryptStorage = () => {
popToTop();
} catch (e) {
if (password) {
alert(loc._.bad_password);
triggerHapticFeedback(HapticFeedbackTypes.NotificationError);
alert(loc._.bad_password);
}
setIsLoading(false);
@ -83,6 +83,7 @@ const EncryptStorage = () => {
saveToDisk();
} else {
setIsLoading(false);
triggerHapticFeedback(HapticFeedbackTypes.NotificationError);
alert(loc.settings.passwords_do_not_match);
}
} else {