From 5439e536391bf0e1035e7f1e517471a49c3765e5 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 30 Jun 2022 00:49:35 +0200 Subject: [PATCH] Fix #194 --- Shared/Views/ShareButton.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Views/ShareButton.swift b/Shared/Views/ShareButton.swift index 3f6f2f82..36dfcb50 100644 --- a/Shared/Views/ShareButton.swift +++ b/Shared/Views/ShareButton.swift @@ -69,7 +69,7 @@ struct ShareButton: View { } private var contentItemIsPlayerCurrentVideo: Bool { - contentItem.contentType == .video && contentItem.video.videoID == player.currentVideo?.id + contentItem.contentType == .video && contentItem.video?.videoID == player.currentVideo?.videoID } private func shareAction(_ url: URL) {