File tree 2 files changed +4
-8
lines changed
condo/domains/user/components/auth
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { colors } from '@condo/domains/common/constants/style'
16
16
import { runMutation } from '@condo/domains/common/utils/mutations.utils'
17
17
import { isSafeUrl } from '@condo/domains/common/utils/url.utils'
18
18
import { ResponsiveCol } from '@condo/domains/user/components/containers/ResponsiveCol'
19
- import { WRONG_PASSWORD_ERROR , WRONG_PHONE_ERROR } from '@condo/domains/user/constants/errors'
19
+ import { WRONG_CREDENTIALS } from '@condo/domains/user/constants/errors'
20
20
import { SIGNIN_BY_PHONE_AND_PASSWORD_MUTATION } from '@condo/domains/user/gql'
21
21
22
22
import { AgreementText } from './AgreementText'
@@ -58,12 +58,8 @@ export const SignInForm = (): React.ReactElement => {
58
58
// TODO(DOMA-3293): remove this legacy error style and Useless error messages
59
59
const ErrorToFormFieldMsgMapping = useMemo ( ( ) => {
60
60
return {
61
- [ WRONG_PHONE_ERROR ] : {
62
- name : 'signinError' ,
63
- errors : [ PasswordOrPhoneMismatch ] ,
64
- } ,
65
- [ WRONG_PASSWORD_ERROR ] : {
66
- name : 'signinError' ,
61
+ [ WRONG_CREDENTIALS ] : {
62
+ name : 'phone' ,
67
63
errors : [ PasswordOrPhoneMismatch ] ,
68
64
} ,
69
65
}
You can’t perform that action at this time.
0 commit comments