chore: debug debug

This commit is contained in:
Shivam Mishra
2024-10-08 18:43:37 +05:30
parent 0511bf4ba6
commit 3750689bee
4 changed files with 48 additions and 32 deletions
@@ -43,7 +43,11 @@ export const getters = {
return diffDays <= TRIAL_PERIOD_DAYS;
},
isFeatureEnabledonAccount: $state => (id, featureName) => {
console.log('----------------------------------------------------');
console.log('CHECK ENABLED for', featureName);
console.log($state, findRecordById($state, id));
const { features = {} } = findRecordById($state, id);
console.log('FEATURES', features, features[featureName]);
return features[featureName] || false;
},
};