From 3d120f62b4eaba8e0e8bb87e900cbd14f01bec98 Mon Sep 17 00:00:00 2001 From: Mudit Mahajan Date: Fri, 26 Apr 2024 11:56:20 +0530 Subject: [PATCH] Fix cancel order response in CancelOrderView --- src/api/marketplace/orders/views.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/api/marketplace/orders/views.py b/src/api/marketplace/orders/views.py index 3cd339d0..e68c980e 100644 --- a/src/api/marketplace/orders/views.py +++ b/src/api/marketplace/orders/views.py @@ -742,14 +742,6 @@ def put(self, request, pk): status=status.HTTP_400_BAD_REQUEST, ) - return Response( - { - "isSuccess": True, - "data": None, - "message": "Order can be cancelled", - - } - ) order_status = "cancelled" if request.user_account.id == order.buyer.id else "rejected" # See if an on chain transaction is already created