Skip to content

Commit

Permalink
Fix is_non_positive
Browse files Browse the repository at this point in the history
  • Loading branch information
romasku committed Dec 1, 2021
1 parent 3ccc81c commit 3d5ceb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neuro_admin_client/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3d5ceb0

Please sign in to comment.