@@ -472,16 +472,22 @@ class MsnPlatformBridge extends PlatformBridgeBase {
472472 const mergedProducts = products . map ( ( product ) => {
473473 const msnProduct = msnProducts . find ( ( p ) => p . productId === product . platformProductId )
474474
475+ const listPrice = msnProduct ?. price ?. listPrice ?? null
476+ const priceCurrencyCode = msnProduct ?. price ?. currencyCode || null
477+ const price = listPrice !== null && priceCurrencyCode
478+ ? `${ listPrice } ${ priceCurrencyCode } `
479+ : null
480+
475481 return {
476482 id : product . id ,
477- title : msnProduct . title ,
478- description : msnProduct . description ,
479- publisherName : msnProduct . publisherName ,
480- inAppOfferToken : msnProduct . inAppOfferToken ,
481- isConsumable : msnProduct . isConsumable ,
482- price : ` ${ msnProduct . price . listPrice } ${ msnProduct . price . currencyCode } ` ,
483- priceCurrencyCode : msnProduct . price . currencyCode ,
484- priceValue : msnProduct . price . listPrice ,
483+ title : msnProduct ? .title || null ,
484+ description : msnProduct ? .description || null ,
485+ publisherName : msnProduct ? .publisherName || null ,
486+ inAppOfferToken : msnProduct ? .inAppOfferToken || null ,
487+ isConsumable : msnProduct ? .isConsumable ?? null ,
488+ price,
489+ priceCurrencyCode,
490+ priceValue : listPrice ,
485491 }
486492 } )
487493
0 commit comments