Skip to content

Commit

Permalink
Evaluations: Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen324 committed Dec 2, 2023
1 parent 875f64f commit 5423f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/redux/ui/evaluation_list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ class EvaluationList extends React.Component {

const evals = evalInfo
.sort((e1, e2) => EvaluationList.evalCompare(e1, e2))
.map(e => {
if (e.summary && e.summary.trim() !== '') {
.map((e) => {
if (e.summary && e.summary.trim() !== "") {
// Render the Evaluation component if the summary is not an empty string
return <Evaluation evalData={e} key={e.id} />;
} else {
// Render an empty div if the summary is an empty string
return <div key={e.id} style={{ display: 'none' }}></div>;
return <div key={e.id} style={{ display: "none" }}></div>;

Check failure on line 68 in static/js/redux/ui/evaluation_list.jsx

View workflow job for this annotation

GitHub Actions / build (3.8, 14.x)

Empty components are self-closing

Check failure on line 68 in static/js/redux/ui/evaluation_list.jsx

View workflow job for this annotation

GitHub Actions / lint

Empty components are self-closing
}
});

Expand Down

0 comments on commit 5423f86

Please sign in to comment.