From 7107372a6f483647b02a16dbdd9c5cb4e92b7aef Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Mon, 21 Jun 2021 22:14:00 -0700 Subject: [PATCH] Fix channel alt text in user list to mention type --- client/components/ChannelWrapper.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/components/ChannelWrapper.vue b/client/components/ChannelWrapper.vue index 61635372..62dcb297 100644 --- a/client/components/ChannelWrapper.vue +++ b/client/components/ChannelWrapper.vue @@ -72,11 +72,7 @@ export default { } } - if (extra.length > 0) { - return `${type}: ${this.channel.name} (${extra.join(", ")})`; - } - - return this.channel.name; + return `${type}: ${this.channel.name} ${extra.length ? `(${extra.join(", ")})` : ""}`; }, click() { if (this.isFiltering) {