-
- {{ $t("About") }} -
- - {{ $t("This group doesn't have a description yet.") }} - -
{{ $t("Upcoming events") }}
- + {{ $t("No public upcoming events") }} From 79872b47dfbe1ff06bdf70b14fb0cd649c51c340 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 20 Apr 2022 15:30:17 +0200 Subject: [PATCH 25/35] Make sure we can call displayName with eventually undefined actor Signed-off-by: Thomas Citharel --- js/src/types/actor/actor.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/types/actor/actor.model.ts b/js/src/types/actor/actor.model.ts index 9b732a901..984c7f33c 100644 --- a/js/src/types/actor/actor.model.ts +++ b/js/src/types/actor/actor.model.ts @@ -68,7 +68,7 @@ export function usernameWithDomain(actor: IActor, force = false): string { } export function displayName(actor: IActor): string { - return actor.name != null && actor.name !== "" + return actor && actor.name != null && actor.name !== "" ? actor.name : usernameWithDomain(actor); } From 993f4a7dcb37fdc9eb49b8509b674b5ec6bd32af Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 20 Apr 2022 15:53:08 +0200 Subject: [PATCH 26/35] Update snapshots after front-end changes Signed-off-by: Thomas Citharel --- .../Comment/__snapshots__/CommentTree.spec.ts.snap | 2 +- .../components/Post/__snapshots__/PostListItem.spec.ts.snap | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/tests/unit/specs/components/Comment/__snapshots__/CommentTree.spec.ts.snap b/js/tests/unit/specs/components/Comment/__snapshots__/CommentTree.spec.ts.snap index bb6089e1d..cd901110d 100644 --- a/js/tests/unit/specs/components/Comment/__snapshots__/CommentTree.spec.ts.snap +++ b/js/tests/unit/specs/components/Comment/__snapshots__/CommentTree.spec.ts.snap @@ -67,7 +67,7 @@ exports[`CommentTree renders an empty comment tree 1`] = ` - No comments yet + No comments yet