Skip to content

Commit

Permalink
Don't queue plans if it's disables
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamMorrow committed Jan 9, 2024
1 parent b4af6e2 commit 5270d8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion LiftLog.Ui/Store/Feed/FeedReducers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5270d8d

Please sign in to comment.