forked from crowetic/commerce
Update handle-login.ts
This commit is contained in:
parent
41b14e55c3
commit
1384a88440
@ -22,7 +22,7 @@ const handleLogin = (data: any) => {
|
|||||||
|
|
||||||
if (errors && errors.length) {
|
if (errors && errors.length) {
|
||||||
throw new ValidationError({
|
throw new ValidationError({
|
||||||
message: errors[0],
|
message: getErrorMessage(errors[0]),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user