Skip to content

Commit 8169398

Browse files
authored
Fix case sensitivity in Issue.[isOpen, isClosed] (#402)
Fixes #401
1 parent f5a565f commit 8169398

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/common/model/issues.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ class Issue {
103103
/// The user who closed the issue
104104
User? closedBy;
105105

106-
bool get isOpen => state == 'OPEN';
107-
bool get isClosed => state == 'CLOSED';
106+
bool get isOpen => state.toUpperCase() == 'OPEN';
107+
bool get isClosed => state.toUpperCase() == 'CLOSED';
108108

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

0 commit comments

Comments
 (0)