Skip to content

Commit

Permalink
Add fallback to env date
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch committed Nov 25, 2024
1 parent 4244f08 commit 60dd7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/newHome/homeOnboarding/hooks/useNewUserCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import moment from "moment";

export const useNewUserCheck = () => {
const { user } = useUser();
const thresholdDateString = process.env.ONBOARDING_USER_JOINED_DATE_THRESHOLD;
const thresholdDateString = process.env.ONBOARDING_USER_JOINED_DATE_THRESHOLD || "2024-01-01";

if (!user) {
return {
Expand Down

0 comments on commit 60dd7d5

Please sign in to comment.