Skip to content

Commit

Permalink
chore: check for current user rather probable
Browse files Browse the repository at this point in the history
  • Loading branch information
nivedin authored and jamesgeorge007 committed Mar 25, 2024
1 parent 0d32f10 commit d65b2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hoppscotch-common/src/pages/profile.vue
Expand Up @@ -252,7 +252,7 @@ const updateDisplayName = async () => {
return
}
if (probableUser.value?.displayName === displayName.value) {
if (currentUser.value?.displayName === displayName.value) {
toast.error(`${t("error.same_profile_name")}`)
return
}
Expand Down

0 comments on commit d65b2de

Please sign in to comment.