Skip to content

Commit

Permalink
Fix is_non_positive - check for zero
Browse files Browse the repository at this point in the history
  • Loading branch information
romasku committed Dec 1, 2021
1 parent 3d5ceb0 commit 0cb55f7
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.credits is not None and self.credits < 0
return self.credits is not None and self.credits <= 0


@dataclass(frozen=True)
Expand Down

0 comments on commit 0cb55f7

Please sign in to comment.