diff --git a/lib/revenuecat/revenuecat.go b/lib/revenuecat/revenuecat.go index e034fa5..5ad5658 100644 --- a/lib/revenuecat/revenuecat.go +++ b/lib/revenuecat/revenuecat.go @@ -94,7 +94,7 @@ func (s *Subscriber) ActiveSubscriptionCount() int { now := time.Now() for _, e := range s.Entitlements { - if e.ExpiresDate.Before(now) { + if e.ExpiresDate != nil && e.ExpiresDate.Before(now) { continue }