inverted logic on `ONBOARDING_INTRODUCED_AT` (#566)

pull/567/head^2
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
1 changed files with 1 additions and 1 deletions

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,