Skip to content

Commit

Permalink
Fix bug in printing check feedback: Handle case where there is no fee…
Browse files Browse the repository at this point in the history
…dback (#1117)
  • Loading branch information
rolfheij-sil authored Sep 9, 2024
2 parents d5a893d + 654c8e9 commit 1376295
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 1376295

Please sign in to comment.