Skip to content

Commit 20a8936

Browse files
wonraxCopilot
andauthored
Update web/src/components/RecommenderFeedSolid.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0ebc5c9 commit 20a8936

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎web/src/components/RecommenderFeedSolid.tsx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,14 @@ export default function RecommenderFeed(): JSXElement {
197197
};
198198

199199
const formatSourceLabel = (source: SourceInfo): string => {
200-
const label = source.key === "hacker-news" ? "Hacker News" : "Lobsters";
200+
let label: string;
201+
if (source.key === "hacker-news") {
202+
label = "Hacker News";
203+
} else if (source.key === "lobsters") {
204+
label = "Lobsters";
205+
} else {
206+
label = source.key;
207+
}
201208
if (source.score !== null) {
202209
return `${label} (${Math.round(source.score)})`;
203210
}

0 commit comments

Comments
 (0)