diff --git a/app/code/Magento/LoginAsCustomer/Controller/Adminhtml/Login/Login.php b/app/code/Magento/LoginAsCustomer/Controller/Adminhtml/Login/Login.php index 8668d213b73c8..298b27d7c5732 100755 --- a/app/code/Magento/LoginAsCustomer/Controller/Adminhtml/Login/Login.php +++ b/app/code/Magento/LoginAsCustomer/Controller/Adminhtml/Login/Login.php @@ -109,9 +109,9 @@ public function execute() $user = $this->authSession->getUser(); $login->generate($user->getId()); - $customerStoreId = $this->storeManager->getStore(); + $store = $this->storeManager->getStore(); - if (null === $customerStoreId) { + if (null === $store) { $store = $this->storeManager->getDefaultStoreView(); }