Skip to content

Commit

Permalink
Fix cancel order response in CancelOrderView
Browse files Browse the repository at this point in the history
  • Loading branch information
muditmahajan committed Apr 26, 2024
1 parent d8ac57f commit 3d120f6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/api/marketplace/orders/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d120f6

Please sign in to comment.