Skip to content

Commit

Permalink
Change account expiry text to display 'less than a day'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Petersson committed Nov 2, 2023
1 parent 7e9bb04 commit 4f99d62
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ final class AccountExpiryInAppNotificationProvider: NotificationProvider, InAppN
formatter.maximumUnitCount = 1

let duration: String?
if accountExpiry.timeIntervalSince(now) < .minutes(1) {
if accountExpiry.timeIntervalSince(now) < .days(1) {
duration = NSLocalizedString(
"ACCOUNT_EXPIRY_INAPP_NOTIFICATION_LESS_THAN_ONE_MINUTE",
value: "Less than a minute",
"ACCOUNT_EXPIRY_INAPP_NOTIFICATION_LESS_THAN_ONE_DAY",
value: "Less than a day",
comment: ""
)
} else {
Expand Down

0 comments on commit 4f99d62

Please sign in to comment.