Fix undefined userId

This commit is contained in:
Hafiz
2025-08-05 12:53:28 -05:00
parent c0508a2f22
commit 0c0dc20dcc

View File

@@ -360,6 +360,7 @@ router.beforeEach(async (to, from, next) => {
if ((to.name === 'stats' || to.name === 'achievements' || to.name === 'profile') && from.name !== null) {
router.app.$emit('habitica:show-profile', {
userId: store.state.user.data._id,
startingPage: to.name,
fromPath: from.path,
toPath: to.path,