Skip to content

Commit 4ed1d1c

Browse files
committed
Fix missing time_stats
1 parent 6cf60b8 commit 4ed1d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/hasTimes.js

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

0 commit comments

Comments
 (0)