aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.js
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2022-08-10 12:17:18 -0400
committerTusooa Zhu <tusooa@kazv.moe>2022-08-10 12:17:18 -0400
commitab4a75bdd92aba7973b6c32eb8ff11280552d6c6 (patch)
treede0be1e185799d606d383f23876690678d2d0524 /src/components/user_profile/user_profile.js
parent09f9640be168d82f39491831dd9f8be4c682afb2 (diff)
Do not allow to find by name in findUser()
Diffstat (limited to 'src/components/user_profile/user_profile.js')
-rw-r--r--src/components/user_profile/user_profile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index 781fd601..08adaeab 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -110,7 +110,7 @@ const UserProfile = {
const maybeName = userNameOrId.name
// Check if user data is already loaded in store
- const user = this.$store.getters.findUser(maybeId || maybeName)
+ const user = maybeId ? this.$store.getters.findUser(maybeId) : this.$store.getters.findUserByName(maybeName)
if (user) {
loadById(user.id)
} else {