Do not allow to find by name in findUser()

This commit is contained in:
Tusooa Zhu 2022-08-10 12:17:18 -04:00
commit ab4a75bdd9
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
4 changed files with 54 additions and 17 deletions

View file

@ -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 {