diff --git a/Packages/BeMatch/Sources/RecommendationEmptyFeature/RecommendationEmpty.swift b/Packages/BeMatch/Sources/RecommendationEmptyFeature/RecommendationEmpty.swift index 79040715..d246fb9d 100644 --- a/Packages/BeMatch/Sources/RecommendationEmptyFeature/RecommendationEmpty.swift +++ b/Packages/BeMatch/Sources/RecommendationEmptyFeature/RecommendationEmpty.swift @@ -103,9 +103,7 @@ public struct RecommendationEmptyView: View { .foregroundStyle(Color.white) .multilineTextAlignment(.center) - Button { - store.send(.shareButtonTapped) - } label: { + ShareLink(item: viewStore.sharedURL) { Text("Share", bundle: .module) .font(.system(.subheadline, weight: .semibold)) .frame(height: 50) diff --git a/Packages/BeMatch/Sources/RecommendationFeature/Recommendation.swift b/Packages/BeMatch/Sources/RecommendationFeature/Recommendation.swift index 95ae058d..257eb850 100644 --- a/Packages/BeMatch/Sources/RecommendationFeature/Recommendation.swift +++ b/Packages/BeMatch/Sources/RecommendationFeature/Recommendation.swift @@ -61,8 +61,6 @@ public struct RecommendationLogic { ? .empty() : .swipe(RecommendationSwipeLogic.State(rows: rows)) - state.child = .empty() - return .none case let .child(.swipe(.delegate(.matched(username)))):