Skip to content

Commit

Permalink
Fix redirect after purchase.
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonperfetti committed Jun 30, 2024
1 parent 8aa720a commit 7b34f31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/linkWithPurchase/[paymentId].vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup>
const user = useSupabaseUser();
const firstLesson = await useFirstLesson();
watchEffect(async () => {
if (user.value) {
Expand All @@ -11,11 +12,11 @@ watchEffect(async () => {
}
);
await navigateTo('/landing', {
await navigateTo(firstLesson.path, {
replace: true,
});
}
});
const render = () => {};
</script>
</script>

0 comments on commit 7b34f31

Please sign in to comment.