diff --git a/client/src/components/feature-wrapper/feature-wrapper.component.jsx b/client/src/components/feature-wrapper/feature-wrapper.component.jsx index 6576d2f30..7dabea2ac 100644 --- a/client/src/components/feature-wrapper/feature-wrapper.component.jsx +++ b/client/src/components/feature-wrapper/feature-wrapper.component.jsx @@ -20,6 +20,7 @@ function FeatureWrapper({ children, upsellComponent, bypass, + // eslint-disable-next-line no-unused-vars ...restProps }) { const { t } = useTranslation(); @@ -80,7 +81,7 @@ export function HasFeatureAccess({ featureName, bodyshop, bypass, debug = false } return ( bodyshop?.features?.allAccess || - bodyshop?.features[featureName] || + bodyshop?.features?.[featureName] || dayjs(bodyshop?.features[featureName]).isAfter(dayjs()) ); }