Skip to content

Commit

Permalink
Revert "chore: remove subscription logic"
Browse files Browse the repository at this point in the history
This reverts commit 887722b.
  • Loading branch information
dominik-stumpf committed Aug 23, 2024
1 parent a0cb869 commit 0f08f20
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Page = () => {
...prev,
referrerProfile: data.referrerProfile,
}))
router.push("start-profile")
router.push("choose-pass")
}
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ const Page = () => {
if (!data.referrerProfile) {
router.replace("claim-pass")
}
if (!data.subscription) {
router.replace("choose-pass")
}
}, [data, router.replace])

if (!data.referrerProfile) {
if (!data.subscription || !data.referrerProfile) {
return <CreateProfileSkeleton />
}

Expand Down

0 comments on commit 0f08f20

Please sign in to comment.