From 6c698bc399733722f9d607f375ea5cdc5a9cacad Mon Sep 17 00:00:00 2001 From: Chief Bube Date: Fri, 27 Oct 2023 20:37:25 -0700 Subject: [PATCH 1/2] fixed array list --- src/components/FamilyAcc/Tabs/FamilyProfile.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/FamilyAcc/Tabs/FamilyProfile.jsx b/src/components/FamilyAcc/Tabs/FamilyProfile.jsx index 8e946d3..fca9c00 100644 --- a/src/components/FamilyAcc/Tabs/FamilyProfile.jsx +++ b/src/components/FamilyAcc/Tabs/FamilyProfile.jsx @@ -283,10 +283,14 @@ export default function FamilyProfile({ familyData, className }) { // Get the current year // const currentYear = new Date().getFullYear() - process.env.REACT_APP_FAMILY_MINIMUM_AGE; -const currentYear = new Date().getFullYear(); -// Generate an array of years from the current year to (currentYear - 19) -const years = Array.from({ length: 19 }, (_, index) => currentYear - index); +// Calculate the current year and the year 3 years before the current year +const currentYear = new Date().getFullYear(); +const startYear = currentYear - 3; + +// Generate an array of years from 4 years before the current year to 18 years before the current year +const years = Array.from({ length: 15 }, (_, index) => startYear - index).reverse(); +// const latestYears = years.slice(0, process.env.REACT_APP_FAMILY_YEAR_RANGE); const months = [ { id: "1", name: "January" }, From 8c7ffb52a5b516255fb780a865d28a35c7b744c9 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 28 Oct 2023 08:30:28 -0400 Subject: [PATCH 2/2] captcha text --- src/components/AuthPages/Login/index.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/AuthPages/Login/index.jsx b/src/components/AuthPages/Login/index.jsx index 6ab5311..e84c207 100644 --- a/src/components/AuthPages/Login/index.jsx +++ b/src/components/AuthPages/Login/index.jsx @@ -484,8 +484,7 @@ export default function Login() { {loginType == "full" && (
- This site is protected by hCaptcha and the our Privacy Policy - and Terms of Service apply. + This site is protected by a Captcha. Our Privacy Policy and Terms of Service apply.
)}