From e5afa98767c86c6161de8ec6570ddd85991b07c2 Mon Sep 17 00:00:00 2001 From: Rei Date: Fri, 29 Dec 2023 11:25:34 +0000 Subject: [PATCH] Seperate each incident with a line --- src/App.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index d398654..c16c061 100644 --- a/src/App.js +++ b/src/App.js @@ -171,7 +171,7 @@ export function MyForm(props) {

Existing incidents in the database:

- {incidents.map((incident) => ( + {incidents.map((incident, index) => (

Incident ID:

{incident.id}

@@ -183,6 +183,7 @@ export function MyForm(props) {

{incident.context}

What word's did Ray use this time?:

{incident.selectedOptions.join(', ')}

+ {index !== incidents.length - 1 &&
}
))}