diff --git a/SodaLive/Sources/Live/EventBanner/SectionEventBannerView.swift b/SodaLive/Sources/Live/EventBanner/SectionEventBannerView.swift index 5decacd..1aa7d55 100644 --- a/SodaLive/Sources/Live/EventBanner/SectionEventBannerView.swift +++ b/SodaLive/Sources/Live/EventBanner/SectionEventBannerView.swift @@ -28,6 +28,7 @@ struct SectionEventBannerView: View { .tag(index) .onTapGesture { if let _ = item.detailImageUrl { + AppState.shared.setAppStep(step: .eventDetail(event: item)) } else if let link = item.link, link.trimmingCharacters(in: .whitespaces).count > 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url) } @@ -39,6 +40,7 @@ struct SectionEventBannerView: View { .tag(index) .onTapGesture { if let _ = item.detailImageUrl { + AppState.shared.setAppStep(step: .eventDetail(event: item)) } else if let link = item.link, link.trimmingCharacters(in: .whitespaces).count > 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url) }