mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
fix(profile): skip redundant navigation
This commit is contained in:
parent
db56134832
commit
50cc7ee09a
1 changed files with 3 additions and 0 deletions
|
|
@ -270,6 +270,9 @@ export default {
|
|||
methods: {
|
||||
percent,
|
||||
showMemberModal (member) {
|
||||
if (this.$route.name === 'userProfile' && this.$route.params?.userId === member._id) {
|
||||
return;
|
||||
}
|
||||
this.$router.push({ name: 'userProfile', params: { userId: member._id } });
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue