diff --git a/LiftLog.Ui/Store/Feed/FeedReducers.cs b/LiftLog.Ui/Store/Feed/FeedReducers.cs index 873f58fd..4033bca8 100644 --- a/LiftLog.Ui/Store/Feed/FeedReducers.cs +++ b/LiftLog.Ui/Store/Feed/FeedReducers.cs @@ -110,7 +110,13 @@ state with public static FeedState AddUnpublishedSessionId( FeedState state, AddUnpublishedSessionIdAction action - ) => state with { UnpublishedSessionIds = state.UnpublishedSessionIds.Add(action.SessionId) }; + ) => + state is { Identity.PublishWorkouts: true } + ? state with + { + UnpublishedSessionIds = state.UnpublishedSessionIds.Add(action.SessionId) + } + : state; [ReducerMethod] public static FeedState RemoveUnpublishedSessionId(