inverted logic on ONBOARDING_INTRODUCED_AT (#566)

This commit is contained in:
Alex Johansson 2021-09-03 19:24:11 +02:00 committed by GitHub
parent ab33cbde4c
commit 8999829490
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -664,7 +664,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
},
});
if (!user.completedOnboarding && dayjs(user.createdDate).isBefore(ONBOARDING_INTRODUCED_AT)) {
if (!user.completedOnboarding && dayjs(user.createdDate).isAfter(ONBOARDING_INTRODUCED_AT)) {
return {
redirect: {
permanent: false,