Skip to content

Commit

Permalink
Merge pull request #10870 from wellcomecollection/available-online-di…
Browse files Browse the repository at this point in the history
…splay

Only show available online section when there is something to display in it
  • Loading branch information
gestchild authored May 15, 2024
2 parents 3125086 + 35d79c5 commit b232a80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/webapp/components/WorkDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ const WorkDetails: FunctionComponent<Props> = ({
const hasVideo = hasItemType(canvases, 'Video');
const hasSound =
hasItemType(canvases, 'Sound') || hasItemType(canvases, 'Audio');
const hasBornDigital = bornDigitalStatus !== 'noBornDigital';
const hasBornDigital =
bornDigitalStatus && bornDigitalStatus !== 'noBornDigital';

const showAvailableOnlineSection =
(digitalLocation && shouldShowItemLink) ||
Expand Down

0 comments on commit b232a80

Please sign in to comment.