Clarify watermark features across packages
This commit is contained in:
@@ -54,7 +54,17 @@ export const resolveWatermarkFeatureKey = (pkg: Package): string => {
|
||||
return 'watermark_custom';
|
||||
}
|
||||
|
||||
return pkg.watermark_allowed === false ? 'no_watermark' : 'watermark';
|
||||
const features = Array.isArray(pkg.features) ? pkg.features : [];
|
||||
|
||||
if (pkg.watermark_allowed === false) {
|
||||
return 'watermark_base';
|
||||
}
|
||||
|
||||
if (features.includes('no_watermark')) {
|
||||
return 'no_watermark';
|
||||
}
|
||||
|
||||
return pkg.watermark_allowed === true ? 'watermark_custom' : 'watermark';
|
||||
};
|
||||
|
||||
const sortPackagesByPrice = (packages: Package[]): Package[] =>
|
||||
|
||||
Reference in New Issue
Block a user