Skip to content

Commit

Permalink
Update OrderCancelAfter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
appinlet committed Aug 4, 2023
1 parent 131752a commit d3e8379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Observer/OrderCancelAfter.php
Expand Up @@ -55,13 +55,13 @@ public function execute(Observer $observer): void
$storeId = $this->storeManager->getStore()->getId();

if ($this->config->getCustomFailedOrderStatus($storeId) != null) {
$status = $this->config->getCustomSuccessOrderStatus($storeId);
$status = $this->config->getCustomFailedOrderStatus($storeId);
} else {
$status = Order::STATE_CLOSED;
}

if ($this->config->getCustomFailedOrderState($storeId) != null) {
$state = $this->config->getCustomSuccessOrderState($storeId);
$state = $this->config->getCustomFailedOrderState($storeId);
} else {
$state = Order::STATE_CLOSED;
}
Expand Down

0 comments on commit d3e8379

Please sign in to comment.