From 758fa8a6f9091c8347c181445094e45ddeaa05fe Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sun, 25 Dec 2022 18:46:54 +0100 Subject: [PATCH] Fix button --- Packages/Timeline/Sources/Timeline/TimelineView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/Timeline/Sources/Timeline/TimelineView.swift b/Packages/Timeline/Sources/Timeline/TimelineView.swift index baeb0fe8..672534c9 100644 --- a/Packages/Timeline/Sources/Timeline/TimelineView.swift +++ b/Packages/Timeline/Sources/Timeline/TimelineView.swift @@ -29,7 +29,7 @@ public struct TimelineView: View { } .padding(.top, DS.Constants.layoutPadding) } - if filter == .home { + if viewModel.timeline == .home { makePendingNewPostsView(proxy: proxy) } } @@ -37,7 +37,7 @@ public struct TimelineView: View { .navigationTitle(filter?.title() ?? viewModel.timeline.title()) .navigationBarTitleDisplayMode(.inline) .toolbar { - if filter == nil, client.isAuth { + if client.isAuth { ToolbarItem(placement: .navigationBarTrailing) { timelineFilterButton }