Skip to content

Commit

Permalink
fix: today streak counter
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Aug 12, 2024
1 parent 5265cf4 commit 3e55a1b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ func showTodayStreak(c leetcode.Client, cmd *cobra.Command) error {
if err != nil {
return err
}
total := streak.StreakCount
today := ""
if streak.TodayCompleted {
total--
today = config.PassedStyle.Render("+1")
}
cmd.Printf("\nTotal streak: %d%s\n", total, today)
cmd.Printf("\nTotal streak: %d%s\n", streak.StreakCount, today)
return nil
}

0 comments on commit 3e55a1b

Please sign in to comment.