Skip to content

Commit

Permalink
chore: fix info
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Nov 1, 2024
1 parent 91cdf8d commit 437a19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pageTemplates/setting/userSetting/userSettingPopUp.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Box, Button, Flex } from "@chakra-ui/react";
import dayjs from "dayjs";
import { useSession } from "next-auth/react";
import Image from "next/image";
import Link from "next/link";
import { useSession } from "next-auth/react";
import { useEffect, useState } from "react";

import BottomFlexDrawer from "../../../components/organisms/drawer/BottomFlexDrawer";
Expand Down Expand Up @@ -129,7 +129,7 @@ export default function UserSettingPopUp({ userInfo }: UserSettingPopUpProps) {
return;
} else if (
!checkAndSetLocalStorage("preference", 3) &&
(!userInfo?.studyPreference?.place ||
(!userInfo?.studyPreference?.updatedAt ||
dayjs().diff(dayjs(userInfo?.studyPreference?.updatedAt), "day") > 30)
) {
setModalTypes((old) => [...old, "preference"]);
Expand Down

0 comments on commit 437a19a

Please sign in to comment.