fix: issue #146 - make trial always says days on every trial banner in the app

Automated fix by Tony CI v3.
Refs #146

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
treyt
2026-02-27 13:00:53 -06:00
parent d41ba29939
commit b1713337f6
3 changed files with 8 additions and 8 deletions

View File

@@ -192,8 +192,8 @@ struct PurchaseButtonView: View {
Image(systemName: "clock")
.foregroundColor(.orange)
if let expirationDate = iapManager.trialExpirationDate, expirationDate > Date() {
Text("\(Text(String(localized: "purchase_view_trial_expires_in")).foregroundColor(textColor)) \(Text(expirationDate, style: .relative).foregroundColor(.orange).bold())")
if iapManager.daysLeftInTrial > 0 {
Text("\(Text(String(localized: "purchase_view_trial_expires_in")).foregroundColor(textColor)) \(Text("\(iapManager.daysLeftInTrial) days").foregroundColor(.orange).bold())")
} else {
Text(String(localized: "purchase_view_trial_expired"))
.foregroundColor(.orange)