Skip to content

Commit

Permalink
Handle case where there is no feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Sep 9, 2024
1 parent d5a893d commit 654c8e9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ export default function ConfigureChecks({
selectedListItems={selectedChecks}
handleSelectListItem={handleSelectCheck}
/>
<ul>{checkFeedback.length > 0 && checkFeedback.map((feedback) => <li>{feedback}</li>)}</ul>
<ul>
{checkFeedback &&
checkFeedback.length > 0 &&
checkFeedback.map((feedback) => <li>{feedback}</li>)}
</ul>
<fieldset className="configure-checks-books">
<BookSelector
handleBookSelectionModeChange={toggleShouldUseCurrentBook}
Expand Down

0 comments on commit 654c8e9

Please sign in to comment.