From 87621f97ed5b2ac61aa9e9d350ff30fd4e513b8e Mon Sep 17 00:00:00 2001 From: RidaAhmad Date: Tue, 24 Jul 2018 18:43:45 +0500 Subject: [PATCH] [MNOE-1263] Updated safe navigation operator --- src/app/components/mno-local-products/mno-local-product.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/mno-local-products/mno-local-product.coffee b/src/app/components/mno-local-products/mno-local-product.coffee index f84bdf65..6b8ade24 100644 --- a/src/app/components/mno-local-products/mno-local-product.coffee +++ b/src/app/components/mno-local-products/mno-local-product.coffee @@ -57,7 +57,7 @@ angular.module 'mnoEnterpriseAngular' # Are there any available plans availablePlans = ProvisioningHelper.plansForCurrency(vm.product.pricing_plans, vm.orgCurrency) - vm.orderPossible = !_.isEmpty(availablePlans) || (vm.product.pricing_plans&[0].default&[0] && currencySelection) + vm.orderPossible = !_.isEmpty(availablePlans) || (vm.product.pricing_plans?[0].default?[0] && currencySelection) vm.buttonDisabledTooltip = vm.updateButtonDisabledTooltip() $state.go(vm.parentState) unless vm.product?