From 62f4f2bd249cb794a2c2548990aea7e32bde52ad Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 20 Apr 2022 08:58:45 +0200 Subject: [PATCH] Improve JoinGroupWithAccount component Signed-off-by: Thomas Citharel --- js/src/components/Group/JoinGroupWithAccount.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/components/Group/JoinGroupWithAccount.vue b/js/src/components/Group/JoinGroupWithAccount.vue index 33dfe696..91138a25 100644 --- a/js/src/components/Group/JoinGroupWithAccount.vue +++ b/js/src/components/Group/JoinGroupWithAccount.vue @@ -10,7 +10,7 @@ import { Component, Prop, Vue } from "vue-property-decorator"; import RedirectWithAccount from "@/components/Utils/RedirectWithAccount.vue"; import { FETCH_GROUP } from "@/graphql/group"; -import { IGroup } from "@/types/actor"; +import { displayName, IGroup } from "@/types/actor"; @Component({ components: { RedirectWithAccount }, @@ -52,7 +52,7 @@ export default class JoinGroupWithAccount extends Vue { } get groupTitle(): undefined | string { - return this.group?.name || this.group?.preferredUsername; + return this.group && displayName(this.group); } sentence = this.$t(