From 738bff8e454c0571e8c04e99297dbe8c57dd5755 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 6 May 2024 16:39:28 -0600 Subject: [PATCH] Show sub label name in hover --- web/src/components/player/LivePlayer.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx index dcdd6423d..840b6413c 100644 --- a/web/src/components/player/LivePlayer.tsx +++ b/web/src/components/player/LivePlayer.tsx @@ -184,7 +184,13 @@ export default function LivePlayer({ - {[...new Set([...(objects || []).map(({ label }) => label)])] + {[ + ...new Set([ + ...(objects || []).map(({ label, sub_label }) => + label.endsWith("verified") ? sub_label : label, + ), + ]), + ] .filter( (label) => label !== undefined && !label.includes("-verified"),