From 998a4f6c5ea5ee0169622d0293a98577e77ff9fa Mon Sep 17 00:00:00 2001 From: Zeyu Zhang <39144422+zeyu2001@users.noreply.github.com> Date: Sat, 3 Aug 2024 01:40:01 +0800 Subject: [PATCH] fix: start membership purchases in summer --- .gitignore | 1 + src/util/validateData.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f21726c..a163a48 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +.vercel diff --git a/src/util/validateData.js b/src/util/validateData.js index 6509616..5f2cb78 100644 --- a/src/util/validateData.js +++ b/src/util/validateData.js @@ -1,7 +1,7 @@ const valData = (data) => { let currMembershipCycle = new Date().getFullYear(); const month = new Date().getMonth(); - if (month < 8) { + if (month < 6) { currMembershipCycle -= 1; }