Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed May 8, 2024
1 parent 7ca5a48 commit a8d03bb
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ export const ComponentsDetailTemplate: React.FC<ComponentsDetailTemplateProps> =
)}
</>
)}
{_getComponent.data.embedded.nl.embedded.commonground.rating &&
_getComponent.data.embedded.nl.embedded.commonground.rating !== 0 && (
{_getComponent.data.embedded?.nl?.embedded?.commonground?.rating &&
_getComponent.data.embedded?.nl?.embedded?.commonground?.rating !== 0 && (
<Button
tabIndex={-1}
className={clsx(
Expand All @@ -553,8 +553,9 @@ export const ComponentsDetailTemplate: React.FC<ComponentsDetailTemplateProps> =
e.preventDefault();
}}
data-tooltip-id={TOOLTIP_ID}
data-tooltip-content={`${t("This component has a rating of")} ${t(getCommongroundRating(_getComponent.data.embedded?.nl?.embedded?.commonground?.rating ?? 0))}`
}
data-tooltip-content={`${t("This component has a rating of")} ${t(
getCommongroundRating(_getComponent.data.embedded?.nl?.embedded?.commonground?.rating ?? 0),
)}`}
>
<Icon>
{getCommongroundImage(_getComponent.data.embedded?.nl?.embedded?.commonground?.rating ?? 0)}
Expand Down

0 comments on commit a8d03bb

Please sign in to comment.