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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user