Fix login error messages

This commit is contained in:
thegoodcode 2021-04-18 09:56:17 +01:00
parent 0b715c2dd2
commit 2ce8ceab78
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ export const handler: MutationHook<null, {}, LoginBody> = {
if (!(email && password)) { if (!(email && password)) {
throw new CommerceError({ throw new CommerceError({
message: message:
'A first name, last name, email and password are required to login', 'An email and password are required to login',
}) })
} }

View File

@ -31,7 +31,7 @@ export const handler: MutationHook<null, {}, CustomerAccessTokenCreateInput> = {
if (!(email && password)) { if (!(email && password)) {
throw new CommerceError({ throw new CommerceError({
message: message:
'A first name, last name, email and password are required to login', 'An email and password are required to login',
}) })
} }