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 d945a5f commit 32dbeae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pages/TrueSightV2/components/FeedbackSurvey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32dbeae

Please sign in to comment.