Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2b8f24b authored by Akhil's avatar Akhil 🙂
Browse files

Fix getOrderInfo

parent a5844b11
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -81,12 +81,10 @@ class ShopAccountController extends Controller {
        $data = ['count' => 0, 'my_orders_url' => $this->shopAccountService->getShopUrl() . '/my-account/orders'];
        $orders = $this->shopAccountService->getOrders($userId);

        if(!$orders) {
            $response->setData($data);
            return $response;
        if($orders) {
            $data['count'] = count($orders);
        }

        $data['count'] = count($orders);
        $response->setData($data);
        return $response;
    }