Skip to content

Commit d525463

Browse files
committed
Fix missing time_stats
1 parent 4ed1d1c commit d525463

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/models/hasTimes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ class hasTimes extends Base {
111111
// skip if description parsing is disabled
112112
this.config.get('_skipDescriptionParsing') ||
113113
// or the total time matches
114-
(this.data.time_stats && totalTimeSpent === this.data.time_stats.total_time_spent) ||
114+
!this.data.time_stats ||
115+
totalTimeSpent === this.data.time_stats.total_time_spent ||
115116
// or the user is filtered out
116117
(this.config.get('user') && this.config.get('user') !== this.data.author.username) ||
117118
// or the issue is not within the given time frame

0 commit comments

Comments
 (0)