Skip to content

Commit 8dcfcf3

Browse files
author
Jason Long
committed
Build new JS after PR #97
1 parent 59fa4b2 commit 8dcfcf3

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

chrome/iso.js

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
13 Bytes
Binary file not shown.

firefox/isometric-contributions/iso.js

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

safari/isometric-contributions.safariextension

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,13 @@ Iso = (function() {
223223
dateBest = 'No activity found';
224224
}
225225
// Longest streak
226-
longestStreakStart = this.formatDateString(longestStreakStart, dateOptions);
227-
longestStreakEnd = this.formatDateString(longestStreakEnd, dateOptions);
228-
datesLongest = longestStreakStart + " — " + longestStreakEnd;
226+
if (streakLongest > 0) {
227+
longestStreakStart = this.formatDateString(longestStreakStart, dateOptions);
228+
longestStreakEnd = this.formatDateString(longestStreakEnd, dateOptions);
229+
datesLongest = longestStreakStart + " — " + longestStreakEnd;
230+
} else {
231+
datesLongest = "No longest streak";
232+
}
229233
this.renderTopStats(countTotal, averageCount, datesTotal, maxCount, dateBest);
230234
return this.renderBottomStats(streakLongest, datesLongest, streakCurrent, datesCurrent);
231235
}

0 commit comments

Comments
 (0)