persistentData = $persistentData; $this->customerSession = $customerSession; $this->persistentSession = $persistentSession; } /** * Reset quote reward point amount * * @param \Magento\Customer\CustomerData\Customer $subject * @param \Closure $proceed * * @return array * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function aroundGetSectionData( \Magento\Customer\CustomerData\Customer $subject, \Closure $proceed ) { /** unset customer first name */ if (!$this->customerSession->isLoggedIn() && $this->persistentData->isEnabled() && $this->persistentSession->isPersistent() ) { return []; } return $proceed(); } }