{
const renderChapterCard = (chapter: Chapter) => {
const params: string[] = ['updatedAt']
const filteredIcons = getFilteredIcons(chapter, params)
- const formattedUrls = handleSocialUrls(chapter.relatedUrls)
+ const formattedUrls = handleSocialUrls(chapter.relatedUrls ?? [])
const handleButtonClick = () => {
router.push(`/chapters/${chapter.key}`)
@@ -84,7 +87,7 @@ const SnapshotDetailsPage: React.FC = () => {
cardKey={chapter.key}
icons={filteredIcons}
social={formattedUrls}
- summary={chapter.summary}
+ summary={chapter.summary ?? ''}
title={chapter.name}
url={`/chapters/${chapter.key}`}
/>
@@ -142,7 +145,7 @@ const SnapshotDetailsPage: React.FC = () => {
{
{snapshot.newChapters
.filter((chapter) => chapter.isActive)
.map((chapter) => (
- {renderChapterCard(chapter)}
+
+ {renderChapterCard(chapter as unknown as Chapter)}
+
))}
@@ -182,8 +187,11 @@ const SnapshotDetailsPage: React.FC = () => {
{snapshot.newReleases.map((release, index) => {
return (
diff --git a/frontend/src/app/contribute/page.tsx b/frontend/src/app/contribute/page.tsx
index 335ad8dc0f..24317b1bfd 100644
--- a/frontend/src/app/contribute/page.tsx
+++ b/frontend/src/app/contribute/page.tsx
@@ -1,4 +1,5 @@
'use client'
+
import { useSearchPage } from 'hooks/useSearchPage'
import React, { useState } from 'react'
import { FaGithub, FaWandMagicSparkles } from 'react-icons/fa6'
@@ -41,28 +42,28 @@ const ContributePage = () => {
}
return (
-
+
setModalOpenIndex(null)}
+ summary={issue.summary ?? ''}
title={issue.title}
- summary={issue.summary}
- hint={issue.hint}
- button={viewIssueButton}
- description="The issue summary and the recommended steps to address it have been generated by AI"
>
)
diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx
index 82c8c40abc..ec9194fbdd 100644
--- a/frontend/src/app/layout.tsx
+++ b/frontend/src/app/layout.tsx
@@ -84,7 +84,7 @@ export default function RootLayout({