Fix active order shows on profile in Sending Satoshis status

This commit is contained in:
Reckless_Satoshi 2022-05-08 09:52:19 -07:00
parent c09e81a037
commit 718f42abf9
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -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):