Skip to content

Commit

Permalink
fix: Remove force unwrapping from PurchaseHistoryView (#4794)
Browse files Browse the repository at this point in the history
* fix: Remove force unwrapping from PurchaseHistoryView

* Update .swiftlint.yml
  • Loading branch information
facumenzella authored Feb 18, 2025
1 parent 1de4d9e commit 2dfc56d
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ struct PurchaseHistoryView: View {
Section(header: Text(
localization[.accountDetails]
)) {
CompatibilityLabeledContent(
localization[.dateWhenAppWasPurchased],
content: dateFormatter.string(from: info.originalPurchaseDate!)
)
if let originalPurchaseDate = info.originalPurchaseDate {
CompatibilityLabeledContent(
localization[.dateWhenAppWasPurchased],
content: dateFormatter.string(from: originalPurchaseDate)
)

}

CompatibilityLabeledContent(
localization[.userId],
Expand Down

0 comments on commit 2dfc56d

Please sign in to comment.