fix: correctly submit a birthday divided by / instead of -

This commit is contained in:
Spectralitree 2022-01-09 15:01:03 +01:00
parent a33d736693
commit 27226af56e

View File

@ -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)`); 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; err = err;