diff --git a/src/pages/TrueSightV2/components/FeedbackSurvey.tsx b/src/pages/TrueSightV2/components/FeedbackSurvey.tsx index 714826eca1..05126ec226 100644 --- a/src/pages/TrueSightV2/components/FeedbackSurvey.tsx +++ b/src/pages/TrueSightV2/components/FeedbackSurvey.tsx @@ -69,7 +69,9 @@ export default function FeedbackSurvey() { const [isOpenWidget, setIsOpenWidget] = useState(false) const theme = useTheme() const { updatedAt, status } = useGetParticipantKyberAIInfo() + const isValid = useMemo(() => updatedAt < 1689768000 && status === ParticipantStatus.WHITELISTED, [updatedAt, status]) + useEffect(() => { if (!isValid) return if (!localStorage.getItem(LOCALSTORAGE_MODAL_SHOWED)) { @@ -81,6 +83,8 @@ export default function FeedbackSurvey() { } }, [isValid]) + if (!isValid) return null + return ( <>