mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Fix undefined userId
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user