From 454f2e8df6693ae6ee54b88401b54ef77b8ad702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BA=D1=82=D0=B5=D1=80=D0=B5=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BD=D0=B4=D1=80=D0=B5=D0=B9?= Date: Tue, 25 Jan 2022 14:08:51 +0000 Subject: [PATCH] Ott 2182 fix pay per view --- src/features/BuyMatchPopup/store/helpers.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/BuyMatchPopup/store/helpers.tsx b/src/features/BuyMatchPopup/store/helpers.tsx index 193d2e62..710c0487 100644 --- a/src/features/BuyMatchPopup/store/helpers.tsx +++ b/src/features/BuyMatchPopup/store/helpers.tsx @@ -84,7 +84,7 @@ export const transformSubsciptions = ({ return { [SubscriptionType.Month]: transformByType(SubscriptionType.Month), [SubscriptionType.Year]: transformByType(SubscriptionType.Year), - [SubscriptionType.PayPerView]: [{ + [SubscriptionType.PayPerView]: subscriptions.pay_per_view ? ([{ currency: currencySymbols[payPerView?.currency_iso], description: { lexic: 'description_match_live_and_on_demand', @@ -96,6 +96,6 @@ export const transformSubsciptions = ({ pass: 'pass_match_access', price: payPerView?.price, type: SubscriptionType.PayPerView, - }], + }]) : [], } }