From 32dbeae5ca377e0d905c47f3836af52ec2b9cde4 Mon Sep 17 00:00:00 2001 From: XiaoYhun Date: Wed, 19 Jul 2023 13:05:19 +0700 Subject: [PATCH] chore --- src/pages/TrueSightV2/components/FeedbackSurvey.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/TrueSightV2/components/FeedbackSurvey.tsx b/src/pages/TrueSightV2/components/FeedbackSurvey.tsx index 05126ec226..bb6d84c458 100644 --- a/src/pages/TrueSightV2/components/FeedbackSurvey.tsx +++ b/src/pages/TrueSightV2/components/FeedbackSurvey.tsx @@ -63,14 +63,17 @@ const XWrapper = styled.span` const LOCALSTORAGE_MODAL_SHOWED = 'showedKyberAIFeedbackSurvey' const LOCALSTORAGE_WIDGET_SHOWED = 'showedKyberAIFeedbackSurveyWidget' - +const MOMENT_THIS_SURVEY_RELEASE = 1689768000 export default function FeedbackSurvey() { const [isOpen, setIsOpen] = useState(false) const [isOpenWidget, setIsOpenWidget] = useState(false) const theme = useTheme() const { updatedAt, status } = useGetParticipantKyberAIInfo() - const isValid = useMemo(() => updatedAt < 1689768000 && status === ParticipantStatus.WHITELISTED, [updatedAt, status]) + const isValid = useMemo( + () => updatedAt < MOMENT_THIS_SURVEY_RELEASE && status === ParticipantStatus.WHITELISTED, + [updatedAt, status], + ) useEffect(() => { if (!isValid) return