commit 1c5ccbf1f70c9e8c5c523d9000c79a19e1cb06ad
parent 402cec149e569a6ce9e7f8079c6fbea40f256a22
Author: Henry Unite <unitehenry@gmail.com>
Date: Mon, 11 May 2026 04:11:07 +0000
chore: format
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/app/src/App.tsx b/app/src/App.tsx
@@ -19,9 +19,9 @@ import {
import { ScrollArea } from "@/components/ui/scroll-area"
const getText = (val?: string | XMLTextElement): string =>
- typeof val === 'string' ? val : val?.["#text"] || '';
+ typeof val === "string" ? val : val?.["#text"] || ""
const getHref = (val?: string | XMLTextElement): string =>
- typeof val === 'string' ? val : val?.["@href"] || '';
+ typeof val === "string" ? val : val?.["@href"] || ""
interface XMLTextElement {
"#text"?: string
@@ -218,7 +218,8 @@ export function App() {
// Atom entry
return {
title: getText(item.title),
- description: getText(item.summary) || getText(item.content) || "",
+ description:
+ getText(item.summary) || getText(item.content) || "",
link: getHref(item.link),
pubDate: item.published || item.updated,
} as FeedItem