From 5915cd9a027336a1cfd943814f160be41516db4a Mon Sep 17 00:00:00 2001 From: Georgi 7DIGIT Date: Fri, 1 Nov 2024 14:27:05 +0200 Subject: [PATCH] Fix: stringify the year --- src/blocks/RegisterAboutYou/RegisterAboutYou.jsx | 2 +- src/blocks/UserDetails/UserDetails.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blocks/RegisterAboutYou/RegisterAboutYou.jsx b/src/blocks/RegisterAboutYou/RegisterAboutYou.jsx index e7d2aec..ef23a42 100644 --- a/src/blocks/RegisterAboutYou/RegisterAboutYou.jsx +++ b/src/blocks/RegisterAboutYou/RegisterAboutYou.jsx @@ -89,7 +89,7 @@ export const RegisterAboutYou = ({ isAnonymous }) => { year <= currentYear - minAge; year++ ) { - years.push({ label: year.toString(), value: year }); + years.push({ label: year.toString(), value: year.toString() }); } years.push({ label: t("parent"), diff --git a/src/blocks/UserDetails/UserDetails.jsx b/src/blocks/UserDetails/UserDetails.jsx index 75580c1..e2b3a0d 100644 --- a/src/blocks/UserDetails/UserDetails.jsx +++ b/src/blocks/UserDetails/UserDetails.jsx @@ -153,7 +153,7 @@ export const UserDetails = ({ year <= currentYear - minAge; year++ ) { - years.push({ label: year.toString(), value: year }); + years.push({ label: year.toString(), value: year.toString() }); } years.push({ label: t("parent"),