From 0bbcebcfc4b516d61c4832a05e93b0d859f1ad34 Mon Sep 17 00:00:00 2001 From: Clerise Swart Date: Wed, 11 Dec 2024 15:44:50 +0700 Subject: [PATCH] PR feedback implemented --- apps/delivery-options/src/composables/useFeatures.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/delivery-options/src/composables/useFeatures.ts b/apps/delivery-options/src/composables/useFeatures.ts index 60eeb55c..03af4525 100644 --- a/apps/delivery-options/src/composables/useFeatures.ts +++ b/apps/delivery-options/src/composables/useFeatures.ts @@ -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]; }), }; });