Skip to content

Commit

Permalink
Fix Navigating to profile page with username results in empty page #41
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-A-Normal-Robot committed Dec 20, 2024
1 parent 83ded40 commit e0b7572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/profiles/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ if(hasAvy) {
}
onMounted(async function() {
router.push(`/profiles/${profile.id}`);
// router.push(`/profiles/${profile.id}`);
history.replaceState(null, "", `/profiles/${profile.id}`);
user.value = (await database.supabase.auth.getUser()).data.user;
if(!user.value) return;
Expand Down

0 comments on commit e0b7572

Please sign in to comment.