Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 6264733

Browse files
authored
Fix optional Date unwrapping in CertificateView to resolve compiler error when displaying expiry dates
1 parent e576c8d commit 6264733

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/prosign/views/CertificateView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ struct CertificateView: View {
131131
.font(.title2)
132132
.fontWeight(.semibold)
133133
.foregroundColor(.primary)
134-
if let expiry = certExpiries[cert.folderName] {
135-
expiryDisplay(for: expiry)
134+
if let expiry = certExpiries[cert.folderName], let validExpiry = expiry {
135+
expiryDisplay(for: validExpiry)
136136
} else {
137137
Text("No expiry date")
138138
.font(.caption)

0 commit comments

Comments
 (0)