From 718f42abf984284346bfee30fb8b7ce0ce394083 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sun, 8 May 2022 09:52:19 -0700 Subject: [PATCH] Fix active order shows on profile in Sending Satoshis status --- api/logics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logics.py b/api/logics.py index 41bb494f..749011fa 100644 --- a/api/logics.py +++ b/api/logics.py @@ -73,7 +73,7 @@ class Logics: # Edge case when the user is in an order that is failing payment and he is the buyer queryset = Order.objects.filter(Q(maker=user) | Q(taker=user), - status=Order.Status.FAI) + status__in=[Order.Status.FAI,Order.Status.PAY]) if queryset.exists(): order = queryset[0] if cls.is_buyer(order, user):