Skip to content

Commit ed345fa

Browse files
committed
fix: Ensure we don't throw an error when updating feed user on initial load
1 parent 2072594 commit ed345fa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/store/feed/effects.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ export function applyFeedEffects() {
283283
identity.publishBodyweight,
284284
identity.publishPlan,
285285
identity.publishWorkouts,
286-
selectActiveProgram(stateAfterReduce).sessions,
286+
stateAfterReduce.program.isHydrated
287+
? selectActiveProgram(stateAfterReduce).sessions
288+
: [],
287289
);
288290
if (signal.aborted) {
289291
return;

0 commit comments

Comments
 (0)