From 35d79c577eaa2758ba9a37b901438908c1b24b8a Mon Sep 17 00:00:00 2001 From: gestchild Date: Wed, 15 May 2024 10:38:05 +0100 Subject: [PATCH] check for bornDigitalStatus value first --- content/webapp/components/WorkDetails/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/webapp/components/WorkDetails/index.tsx b/content/webapp/components/WorkDetails/index.tsx index 7ddbba554f..27f1496319 100644 --- a/content/webapp/components/WorkDetails/index.tsx +++ b/content/webapp/components/WorkDetails/index.tsx @@ -154,7 +154,8 @@ const WorkDetails: FunctionComponent = ({ 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) ||