From 883f0a95a6aa1fee1c2dee238ea53b77968d6e40 Mon Sep 17 00:00:00 2001
From: Pim Hutting
Date: Tue, 20 Jan 2026 13:55:34 +0100
Subject: [PATCH] chore: only check if play is undefined
---
src/utils/programStore.ts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/utils/programStore.ts b/src/utils/programStore.ts
index ac34ef4..4e12bb3 100644
--- a/src/utils/programStore.ts
+++ b/src/utils/programStore.ts
@@ -85,9 +85,8 @@ const useProgramStore = create((set, get) => ({
const rootGoals = phase["goals"] as Record[];
const flatList: GoalWithDepth[] = [];
- // Helper: Define this ONCE, outside the loop
const isGoal = (item: Record) => {
- return item["plan"] !== undefined && item["plan"] !== null;
+ return item["plan"] !== undefined;
};
// Recursive helper function