rename unwrapped variable to match optional name

This commit is contained in:
Satindar Dhillon 2022-05-16 09:32:34 -07:00
parent 4295b029a5
commit 2378a08287
2 changed files with 4 additions and 4 deletions

View file

@ -100,8 +100,8 @@ public struct GridCard: View {
.lineLimit(1)
}
if let publisherURL = item.publisherDisplayName {
Text(publisherURL)
if let publisherDisplayName = item.publisherDisplayName {
Text(publisherDisplayName)
.font(.appCaptionTwo)
.foregroundColor(.appGrayText)
.underline()

View file

@ -26,8 +26,8 @@ public struct FeedCard: View {
.lineLimit(1)
}
if let publisherURL = item.publisherDisplayName {
Text(publisherURL)
if let publisherDisplayName = item.publisherDisplayName {
Text(publisherDisplayName)
.font(.appCaption)
.foregroundColor(.appGrayText)
.underline()