From 3d5ceb0ec8cad9e32a1633dda46a4d92d613c3d3 Mon Sep 17 00:00:00 2001 From: Roman Skurikhin Date: Wed, 1 Dec 2021 16:21:35 +0200 Subject: [PATCH] Fix is_non_positive --- neuro_admin_client/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neuro_admin_client/entities.py b/neuro_admin_client/entities.py index f78efa3..6ca4adc 100644 --- a/neuro_admin_client/entities.py +++ b/neuro_admin_client/entities.py @@ -87,7 +87,7 @@ class Balance: @property def is_non_positive(self) -> bool: - return self.spent_credits is not None and self.spent_credits < 0 + return self.credits is not None and self.credits < 0 @dataclass(frozen=True)