Skip to content

Commit

Permalink
PR feedback implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
Clerise Swart committed Dec 11, 2024
1 parent 8dc1f14 commit 0bbcebc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/delivery-options/src/composables/useFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import {PackageTypeName} from '@myparcel/constants';
import {useConfigStore} from '../stores';
import {SHOWN_SHIPMENT_OPTIONS} from '../data';

const PACKAGE_TYPE_DEFAULT = [PackageTypeName.Package, PackageTypeName.PackageSmall];
const SUPPORTED_PACKAGE_TYPES = [PackageTypeName.Package, PackageTypeName.PackageSmall];

export const useFeatures = useMemoize(() => {
const config = useConfigStore();

return {
availableShipmentOptions: computed(() => {
return PACKAGE_TYPE_DEFAULT.includes(config.packageType) ? SHOWN_SHIPMENT_OPTIONS : [];
return SUPPORTED_PACKAGE_TYPES.includes(config.packageType) ? SHOWN_SHIPMENT_OPTIONS : [];
}),

showDeliveryDate: computed(() => {
return PACKAGE_TYPE_DEFAULT.includes(config.packageType) && config[ConfigSetting.ShowDeliveryDate];
return SUPPORTED_PACKAGE_TYPES.includes(config.packageType) && config[ConfigSetting.ShowDeliveryDate];
}),
};
});

0 comments on commit 0bbcebc

Please sign in to comment.