From 39450c3266d01e1037e1b36a953facaf68d5e873 Mon Sep 17 00:00:00 2001 From: Krispire Admin Date: Mon, 8 Jun 2026 16:09:25 +0530 Subject: [PATCH] fix: reward day calculation --- internal/service/sadhna_service.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/service/sadhna_service.go b/internal/service/sadhna_service.go index 7c573cd..ee36d5a 100644 --- a/internal/service/sadhna_service.go +++ b/internal/service/sadhna_service.go @@ -246,7 +246,13 @@ func (s *SadhnaService) Dashboard(ctx context.Context, userID string) (*model.Sa s.ensureGrant(ctx, userID, current) } pending, _ = s.rewards.PendingGrant(ctx, userID) - nextReward = nextRewardDate(today, current, todayDone) + // Only project a next-gift date when a streak is actually in + // progress. With no live streak (current == 0) there's nothing to + // "continue", so the calendar shows no gift marker until the devotee + // completes a day (full rounds AND a quote). + if current > 0 { + nextReward = nextRewardDate(today, current, todayDone) + } } return &model.SadhnaDashboard{