inverted logic on ONBOARDING_INTRODUCED_AT (#566)

This commit is contained in:
Alex Johansson authored and GitHub committed 2021-09-03 17:24:11 +00:00
1 parent ab33cbde4c
commit 8999829490
1 file changed
+1 -1
+1 -1
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,