Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoYhun committed Jul 19, 2023
1 parent 822cb53 commit d945a5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/TrueSightV2/components/FeedbackSurvey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -81,6 +83,8 @@ export default function FeedbackSurvey() {
}
}, [isValid])

if (!isValid) return null

return (
<>
<Modal isOpen={isOpen} maxWidth="fit-content">
Expand Down

0 comments on commit d945a5f

Please sign in to comment.