pull/2482/head
filip mertens 2 years ago committed by yann300
parent bb801ef36a
commit b075ac19c3
  1. 4
      libs/remix-ui/home-tab/src/lib/components/rssFeed.tsx

@ -12,8 +12,8 @@ export function RSSFeed({ feedUrl, maxItems }: RSSFeedProps) {
useEffect(() => {
const fetchData = async () => {
let parser = new Parser()
let feed = await parser.parseURL(feedUrl);
const parser = new Parser()
const feed = await parser.parseURL(feedUrl);
for (const item of feed.items) {
item.content = item['content:encoded']
item.date = new Date(item.pubDate).toLocaleDateString('en-US', {

Loading…
Cancel
Save