pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "maybe add check beside active embed?"

This reverts commit 76124c9299319f39ad37e0878731a2571fe8f588.

Pas c12acf8c d6a9fc50

+1 -15
+1 -15
src/components/player/atoms/settings/SourceSelectingView.tsx
··· 31 31 const { t } = useTranslation(); 32 32 const unknownEmbedName = t("player.menus.sources.unknownOption"); 33 33 34 - const currentSourceId = usePlayerStore((s) => s.sourceId); 35 - const captionList = usePlayerStore((s) => s.captionList); 36 - 37 - const isActive = useMemo(() => { 38 - if (currentSourceId !== props.sourceId) return false; 39 - 40 - return captionList.some((caption) => caption.id.includes(props.embedId)); 41 - }, [currentSourceId, props.sourceId, props.embedId, captionList]); 42 - 43 34 const embedName = useMemo(() => { 44 35 if (!props.embedId) return unknownEmbedName; 45 36 const sourceMeta = getCachedMetadata().find((s) => s.id === props.embedId); ··· 54 45 ); 55 46 56 47 return ( 57 - <SelectableLink 58 - loading={loading} 59 - error={errored} 60 - onClick={run} 61 - selected={isActive} 62 - > 48 + <SelectableLink loading={loading} error={errored} onClick={run}> 63 49 <span className="flex flex-col"> 64 50 <span>{embedName}</span> 65 51 </span>