We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c424ce4 commit 0ba0510Copy full SHA for 0ba0510
src/common/component/SignupTextField/validation.ts
@@ -17,7 +17,7 @@ export function validateField(type: 'name' | 'birth' | 'job', value: string): st
17
if (!BIRTH_REGEX.test(value)) {
18
return ERROR_MESSAGES.birth;
19
}
20
- const [year, month, day] = value.split('-');
+ const [month, day] = value.split('-');
21
const monthNum = parseInt(month, 10);
22
if (monthNum < 1 || monthNum > 12) {
23
0 commit comments