Browse Source

Adding loading message in password confirmation change password

master
GabrielTrettel 3 years ago
parent
commit
54ffddfa7d
  1. 6
      src/app/screens/PasswordRecoveryScreen.js

6
src/app/screens/PasswordRecoveryScreen.js

@ -72,7 +72,11 @@ export default function PasswordRecovery({ navigation }) {
}); });
const handleSubmit = async (number, answer, secQuestion) => { const handleSubmit = async (number, answer, secQuestion) => {
const apiResponse = await loginByUsernamAnswers(number, secQuestion, answer);
setConfirmatioModalData({
message: "Validando informações",
show: true,
});
const apiResponse = await loginByUsernamAnswers(number, secQuestion, answer);
switch (apiResponse.status) { switch (apiResponse.status) {
case 200: case 200:

Loading…
Cancel
Save