IO-2661 Rename CSR labels to Writer for Rome & PM

This commit is contained in:
Patrick Fic
2024-04-01 10:44:57 -07:00
parent 9b9ac505e9
commit 07a18bcd8c
9 changed files with 62 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ function FeatureWrapper({ bodyshop, featureName, noauth, children, ...restProps
}
export function HasFeatureAccess({ featureName, bodyshop }) {
return bodyshop?.features.allAccess || dayjs(bodyshop?.features[featureName]).isAfter(dayjs());
return bodyshop?.features?.allAccess || dayjs(bodyshop?.features[featureName]).isAfter(dayjs());
}
export default connect(mapStateToProps, null)(FeatureWrapper);