Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(goal): read the renamed Goals lab selector in the clarification island (#20175)

Arvin Xuc442986b43c9
diff --git a/src/features/GlobalApprovalNotification/usePendingGoalClarifications.ts b/src/features/GlobalApprovalNotification/usePendingGoalClarifications.ts
index 9614adfc404..6232195fd01 100644
--- a/src/features/GlobalApprovalNotification/usePendingGoalClarifications.ts
+++ b/src/features/GlobalApprovalNotification/usePendingGoalClarifications.ts
@@ -47,7 +47,7 @@ export const selectIslandGoalClarifications = (
/** Goal clarification rounds the island should ask, oldest first. */
export const usePendingGoalClarifications = (): GoalClarificationGroup[] => {
- const enabled = useUserStore(labPreferSelectors.enableTopicAcceptance);
+ const enabled = useUserStore(labPreferSelectors.enableGoals);
// The same gate the goal page puts on its answer controls.
const { allowed: canAnswer } = usePermission('create_content');
const useFetchPendingClarifications = useGoalStore((s) => s.useFetchPendingClarifications);