Skip to content

Commit

Permalink
add missing key to map render
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsam committed Jan 9, 2025
1 parent 9051a5f commit 5608258
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/routes/_site+/about.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type HeadersFunction, type MetaFunction } from '@remix-run/node'
import { Fragment } from 'react/jsx-runtime'
import { pipeHeaders } from '#app/utils/remix.server.ts'

export const meta: MetaFunction = () => {
Expand All @@ -21,11 +22,11 @@ export default function About() {
return (
<section className="container py-9">
<article className="prose dark:prose-invert lg:prose-xl">
{questions.map((question) => (
<>
<h2>{question.q}</h2>
<p>{question.a}</p>
</>
{questions.map(({ q, a }) => (
<Fragment key={q}>
<h2>{q}</h2>
<p>{a}</p>
</Fragment>
))}
</article>
</section>
Expand Down

0 comments on commit 5608258

Please sign in to comment.