Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
TeeGoood authored Jul 20, 2024
2 parents b71a5ba + c958644 commit a657893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/(main)/home/CustomButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const CustomButton: React.FC<CustomButtonProps> = ({
}) => {
const router = useRouter();
const firstdate = async () => {
console.log(currentDate);
let firstDateDate = currentDate;
const firstDate = process.env.NEXT_PUBLIC_FIRST_DATE_DATE;
if (firstDate) {
firstDateDate = new Date(firstDate);
}
console.log(currentDate.toISOString(), firstDateDate.toISOString());
if (currentDate >= firstDateDate) {
if (registered) {
router.push('/firstdate/home');
Expand All @@ -42,12 +42,12 @@ const CustomButton: React.FC<CustomButtonProps> = ({
}
};
const rubpeun = async () => {
console.log(currentDate);
let rupPeunDate = currentDate;
const rupPeun = process.env.NEXT_PUBLIC_RUP_PEUN_DATE;
if (rupPeun) {
rupPeunDate = new Date(rupPeun);
}
console.log(currentDate.toISOString(), rupPeunDate.toISOString());
if (currentDate >= rupPeunDate) {
if (registered) {
router.push('/rpkm/baan/home');
Expand Down

0 comments on commit a657893

Please sign in to comment.