Skip to content

Commit

Permalink
fix parentheses issue
Browse files Browse the repository at this point in the history
  • Loading branch information
austenem committed Oct 1, 2024
1 parent c29f038 commit 7014e9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function AttributionAccordion() {
dataset: { creation_action, contributors, contacts },
} = useProcessedDatasetContext();

if (creation_action === 'Central Process' || !Boolean(contributors?.length) {
if (creation_action === 'Central Process' || !contributors?.length) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion context/app/static/js/pages/Dataset/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function getProcessedDatasetSection({
visualization: visualization || Boolean(conf && 'data' in conf && conf?.data),
files: Boolean(files?.length),
analysis: Boolean(metadata?.dag_provenance_list),
attribution: creation_action !== 'Central Process' && Boolean(contributors?.length !== 0),
attribution: creation_action !== 'Central Process' && !!contributors?.length,
};

const sectionsToDisplay = Object.entries(shouldDisplaySection).filter(([_k, v]) => v === true);
Expand Down

0 comments on commit 7014e9e

Please sign in to comment.