@@ -28,8 +28,8 @@ import { NAV_LINKS } from '../../../shared/nav/NavConfig';
28
28
import { COUNTRIES } from '../../identity/models' ;
29
29
import { InfoIconDark } from '../../shared/assets/InfoIconDark' ;
30
30
import { InfoSection } from '../../shared/InfoSection' ;
31
- import { ProductDescriptionListTable } from '../../shared/ProductDescriptionListTable' ;
32
31
import type { ProductDescriptionListKeyValue } from '../../shared/ProductDescriptionListTable' ;
32
+ import { ProductDescriptionListTable } from '../../shared/ProductDescriptionListTable' ;
33
33
import { ProgressIndicator } from '../../shared/ProgressIndicator' ;
34
34
import type { AddressSetStateObject } from './DeliveryAddressFormContext' ;
35
35
import {
@@ -438,13 +438,17 @@ export const DeliveryAddressUpdate = (props: WithProductType<ProductType>) => {
438
438
contactIdToArrayOfProductDetailAndProductType ,
439
439
)
440
440
. flatMap ( flattenEquivalent )
441
- . map ( ( { productDetail } ) => {
442
- const hasProducts = GROUPED_PRODUCT_TYPES . subscriptions
441
+ . some ( ( { productDetail } ) => {
442
+ console . log ( productDetail ) ;
443
+ return GROUPED_PRODUCT_TYPES . subscriptions
443
444
. mapGroupedToSpecific ( productDetail )
444
- . productType . includes ( 'national delivery' ) ;
445
- return `${ hasProducts } ` ;
445
+ . productType . includes ( 'nationaldelivery' ) ;
446
446
} ) ;
447
447
448
+ console . log ( contactIdToArrayOfProductDetailAndProductType ) ;
449
+
450
+ console . log ( hasNationalDelivery ) ;
451
+
448
452
if ( hasNationalDelivery ) {
449
453
return (
450
454
< >
0 commit comments