mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +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) {
|
if ((to.name === 'stats' || to.name === 'achievements' || to.name === 'profile') && from.name !== null) {
|
||||||
router.app.$emit('habitica:show-profile', {
|
router.app.$emit('habitica:show-profile', {
|
||||||
|
userId: store.state.user.data._id,
|
||||||
startingPage: to.name,
|
startingPage: to.name,
|
||||||
fromPath: from.path,
|
fromPath: from.path,
|
||||||
toPath: to.path,
|
toPath: to.path,
|
||||||
|
|||||||
Reference in New Issue
Block a user