diff --git a/website/client/src/router/index.js b/website/client/src/router/index.js index 7adef8675b..4a262e625e 100644 --- a/website/client/src/router/index.js +++ b/website/client/src/router/index.js @@ -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,