Skip to content

Commit

Permalink
check for undefined error tag string or return null (#2051)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwarz2030 authored Jul 11, 2023
1 parent 0db7a29 commit ea370f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ErrorTagComment/ErrorTagComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ErrorTagComment = ({ errorTags }) => {
if (formattedErrorTags) {
const str = formattedErrorTags.length > 1 ? formattedErrorTags.join(", ") : formattedErrorTags[0];

return str;
return str || null;
}
}

Expand Down

0 comments on commit ea370f1

Please sign in to comment.