Assign indices as keys for announcements.

master
Icedream 2021-01-03 21:00:09 +01:00
parent ec684c2417
commit 3c5e8211cb
1 changed files with 3 additions and 3 deletions

View File

@ -64,9 +64,9 @@ export default function Home({ announcements, ids }: VideoOnDemandIndex) {
</p>
{
announcements.map(announcement => (
<p>
<b>Announcement:</b> {announcement}
announcements.map((text, id) => (
<p key={id}>
<b>Announcement:</b> {text}
</p>
))
}