Commit 67de1e49 by Arjun Jhukal

updated the date format

parent 2cd4c5c2
...@@ -17,7 +17,6 @@ export const SeonProvider: React.FC<{ children: React.ReactNode }> = ({ children ...@@ -17,7 +17,6 @@ export const SeonProvider: React.FC<{ children: React.ReactNode }> = ({ children
useEffect(() => { useEffect(() => {
seon.init({ seon.init({
behavioralDataCollection: { behavioralDataCollection: {
targets: 'input[type="text"], .behavior', targets: 'input[type="text"], .behavior',
......
...@@ -121,7 +121,7 @@ export default function RegisterPage() { ...@@ -121,7 +121,7 @@ export default function RegisterPage() {
initialValues, initialValues,
validationSchema, validationSchema,
onSubmit: async (values) => { onSubmit: async (values) => {
const formattedDob = values.dob ? dayjs(values.dob).format('MM-DD-YYYY') : ''; const formattedDob = values.dob ? dayjs(values.dob).format('YYYY-MM-DD') : '';
try { try {
const response = await registerUser({ const response = await registerUser({
email: values.emailAddress, email: values.emailAddress,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment