Skip to content

Commit

Permalink
Fix case sensitivity in Issue.[isOpen, isClosed] (#402)
Browse files Browse the repository at this point in the history
Fixes #401
  • Loading branch information
Piinks authored Apr 13, 2024
1 parent f5a565f commit 8169398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/common/model/issues.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class Issue {
/// The user who closed the issue
User? closedBy;

bool get isOpen => state == 'OPEN';
bool get isClosed => state == 'CLOSED';
bool get isOpen => state.toUpperCase() == 'OPEN';
bool get isClosed => state.toUpperCase() == 'CLOSED';

// The following properties were added to support the Timeline API.

Expand Down

0 comments on commit 8169398

Please sign in to comment.