IO-2704 QBO/D Export resolution

This commit is contained in:
Patrick Fic
2024-03-19 10:54:25 -07:00
parent 8cb18d6d1d
commit 8460a99085
4 changed files with 4 additions and 9 deletions

View File

@@ -33,11 +33,6 @@ function FeatureWrapper({ bodyshop, featureName, noauth, children, ...restProps
}
export function HasFeatureAccess({ featureName, bodyshop }) {
console.log(
'Feature Name', featureName,
bodyshop?.features.allAccess,
dayjs(bodyshop?.features[featureName]).isAfter(dayjs())
);
return bodyshop?.features.allAccess || dayjs(bodyshop?.features[featureName]).isAfter(dayjs());
}