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

@@ -22,12 +22,12 @@ struct IAPWarningView: View {
Image(systemName: "clock")
.foregroundColor(.orange)
if let expirationDate = iapManager.trialExpirationDate, expirationDate > Date() {
if iapManager.daysLeftInTrial > 0 {
Text(String(localized: "iap_warning_view_title"))
.font(.body)
.foregroundColor(textColor)
Text(expirationDate, style: .relative)
Text("\(iapManager.daysLeftInTrial) days")
.font(.body)
.bold()
.foregroundColor(.orange)