mirror of
https://github.com/usetrmnl/plugins.git
synced 2026-04-29 13:32:45 -07:00
Update lib/github_commit_graph/github_commit_graph.rb
Co-authored-by: Ryan Kulp <dm@ryanckulp.com>
This commit is contained in:
@@ -79,7 +79,7 @@ module Plugins
|
||||
streak = 0
|
||||
|
||||
# The current day can count towards the streak but it shouldn't break the streak
|
||||
streak += 1 if days.last['contributionCount'].positive?
|
||||
streak += 1 if days.last[:contributionCount].positive?
|
||||
|
||||
days[0..-2].reverse_each do |day|
|
||||
break if (day['contributionCount']).zero?
|
||||
|
||||
Reference in New Issue
Block a user