This commit is contained in:
cond0r
2021-02-25 11:16:44 +02:00
parent f242f3c588
commit e6792d6dd0
10 changed files with 19 additions and 28 deletions

View File

@@ -15,8 +15,6 @@ import { setCustomerToken } from '@framework/utils'
export default useLogin as UseLogin<typeof handler>
const getErrorMessage = ({ code, message }: CustomerUserError) => {
console.log(code)
switch (code) {
case 'UNIDENTIFIED_CUSTOMER':
message = 'Cannot find an account that matches the provided credentials'