Skip to content

Commit

Permalink
apiResult Has Been Fixed in Teacher Forgot Password (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
agitrubard authored Mar 10, 2022
1 parent 72e6317 commit 1bc3a83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/login/teacher/forgot-password/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export default function TeacherForgotPassword({SIS_API_URL, SIS_FE_URL}) {
headers: {'Content-Type': 'application/json'},
method: 'POST'
});
if (!apiResult.success) {
const data = await apiResult.json();
if (!data.success) {
closeProcessingForgotPasswordNotification();
openFailForgotPasswordNotification();
} else if (data.response.forgotPasswordSuccess) {
Expand Down

0 comments on commit 1bc3a83

Please sign in to comment.