Skip to content

Commit

Permalink
Merge pull request #84 from magento/hotfix
Browse files Browse the repository at this point in the history
Fatal error on Login As Customer hotfix.
  • Loading branch information
naydav authored Apr 15, 2020
2 parents 3adfbba + da9915f commit a816773
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit a816773

Please sign in to comment.