Skip to content

Commit

Permalink
fix: ensure scroll if passing hash only
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva committed Nov 18, 2024
1 parent 022b8b6 commit 449ed78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Portfolio/MyKiva/MyKivaPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ watch(isAchievementDataLoaded, () => {
nextTick(() => {
// Scroll to section once async data is loaded
const targetId = window?.location?.hash?.replace('#', '');
scrollToTarget(targetId);
if (targetId) scrollToTarget(targetId);
checkGuestAchievementsToScroll();
});
}
Expand Down

0 comments on commit 449ed78

Please sign in to comment.