fix(settings): remove duplicate alert popup on change password error (issue #111)
- Prevent displaying duplicate error messages when entering an incorrect password - Rely on inline error display below the input fields instead of showing redundant alert dialogs
This commit is contained in:
parent
3273d74780
commit
77d3847280
|
|
@ -100,11 +100,6 @@ export default function ChangePasswordScreen() {
|
||||||
} else {
|
} else {
|
||||||
setCurrentError(errMsg);
|
setCurrentError(errMsg);
|
||||||
}
|
}
|
||||||
if (Platform.OS === "web") {
|
|
||||||
window.alert(errMsg);
|
|
||||||
} else {
|
|
||||||
Alert.alert("Error", errMsg);
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue