diff --git a/Observer/Subscriber/SaveAfter.php b/Observer/Subscriber/SaveAfter.php index 8eb17bba..3c055a17 100644 --- a/Observer/Subscriber/SaveAfter.php +++ b/Observer/Subscriber/SaveAfter.php @@ -65,7 +65,7 @@ public function execute(\Magento\Framework\Event\Observer $observer) if ($isCustomer) { $subscriberOld = $factory->loadBySubscriberEmail($subscriber->getCustomerId(), $subscriber->getStoreId()); } - if ($this->_helper->isMailChimpEnabled($subscriberOld->getStoreId())&&$isCustomer&& + if ($this->_helper->isMailChimpEnabled($subscriber->getStoreId())&&$isCustomer&& $subscriberOld->getEmail()&&$subscriber->getEmail()!=$subscriberOld->getEmail()) { $api = $this->_helper->getApi($subscriberOld->getStoreId()); $mergeVars = $this->_helper->getMergeVarsBySubscriber($subscriberOld, $subscriberOld->getEmail());