diff --git a/app/code/Magento/Catalog/Helper/Data.php b/app/code/Magento/Catalog/Helper/Data.php index 0d38072aa4980..96932dc3a42d9 100644 --- a/app/code/Magento/Catalog/Helper/Data.php +++ b/app/code/Magento/Catalog/Helper/Data.php @@ -550,7 +550,7 @@ public function getTaxPrice( $taxClassKey->setType(TaxClassKeyInterface::TYPE_ID) ->setValue($product->getTaxClassId()); - if ($ctc === null && $this->_customerSession->getCustomerGroupId() != null) { + if ($ctc === null && $this->_customerSession->getCustomerGroupId() !== null) { $ctc = $this->customerGroupRepository->getById($this->_customerSession->getCustomerGroupId()) ->getTaxClassId(); }