From 2378a08287c58169815fb4dd2c1111e37779585d Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Mon, 16 May 2022 09:32:34 -0700 Subject: [PATCH] rename unwrapped variable to match optional name --- apple/OmnivoreKit/Sources/Views/FeedItem/GridCard.swift | 4 ++-- .../OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Views/FeedItem/GridCard.swift b/apple/OmnivoreKit/Sources/Views/FeedItem/GridCard.swift index b3fc58521..e36a2fdb4 100644 --- a/apple/OmnivoreKit/Sources/Views/FeedItem/GridCard.swift +++ b/apple/OmnivoreKit/Sources/Views/FeedItem/GridCard.swift @@ -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() diff --git a/apple/OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift b/apple/OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift index d8dbea657..077854bb7 100644 --- a/apple/OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift +++ b/apple/OmnivoreKit/Sources/Views/FeedItem/HomeFeedCardView.swift @@ -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()