fix: correctly submit a birthday divided by / instead of -
This commit is contained in:
parent
a33d736693
commit
27226af56e
@ -42,6 +42,9 @@
|
||||
err.push(`${data.birthday} is not a valid date, please use the following format: YYYY-MM-DD. (example: 2019-07-21)`);
|
||||
}
|
||||
}
|
||||
if (data.birthday.includes('/')) {
|
||||
data.birthday.replace('/', '-');
|
||||
}
|
||||
}
|
||||
|
||||
err = err;
|
||||
|
Loading…
Reference in New Issue
Block a user