Skip to content

Commit b6bcfe1

Browse files
author
Anindya Dhruba
committed
Fix error showing
1 parent e8d191f commit b6bcfe1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

resources/assets/js/store/modules/edit-password.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default {
4747
updatePasswordFailure: ({commit, dispatch}, body) => {
4848
commit({
4949
type: types.UPDATE_PASSWORD_FAILURE,
50-
errors: body
50+
errors: body.errors || []
5151
});
5252

5353
if(body.error) {

resources/assets/js/store/modules/edit-profile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default {
4747
updateProfileFailure: ({commit, dispatch}, body) => {
4848
commit({
4949
type: types.UPDATE_PROFILE_FAILURE,
50-
errors: body
50+
errors: body.errors || []
5151
});
5252

5353
if(body.error) {

resources/assets/js/store/modules/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default {
4949
loginFailure: ({commit, dispatch}, body) => {
5050
commit({
5151
type: types.LOGIN_FAILURE,
52-
errors: body
52+
errors: body.errors || []
5353
});
5454

5555
if(body.error) {

0 commit comments

Comments
 (0)