Update lib/github_commit_graph/github_commit_graph.rb

Co-authored-by: Ryan Kulp <dm@ryanckulp.com>
This commit is contained in:
Brad P
2025-04-24 15:35:57 -05:00
committed by GitHub
parent 1bba227a81
commit 20080bda9c
@@ -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?