summaryrefslogtreecommitdiff
path: root/makima/frontend/src/components/SupervisorQuestionNotification.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'makima/frontend/src/components/SupervisorQuestionNotification.tsx')
-rw-r--r--makima/frontend/src/components/SupervisorQuestionNotification.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/makima/frontend/src/components/SupervisorQuestionNotification.tsx b/makima/frontend/src/components/SupervisorQuestionNotification.tsx
index 1457d86..b1cbacc 100644
--- a/makima/frontend/src/components/SupervisorQuestionNotification.tsx
+++ b/makima/frontend/src/components/SupervisorQuestionNotification.tsx
@@ -5,7 +5,12 @@ export function SupervisorQuestionNotification() {
const navigate = useNavigate();
const { notificationQuestions, dismissNotification } = useSupervisorQuestions();
- if (notificationQuestions.length === 0) {
+ // Filter out contract_complete questions - they are displayed on the task page instead
+ const filteredQuestions = notificationQuestions.filter(
+ (q) => q.questionType !== "contract_complete"
+ );
+
+ if (filteredQuestions.length === 0) {
return null;
}
@@ -16,7 +21,7 @@ export function SupervisorQuestionNotification() {
return (
<div className="fixed bottom-4 right-4 z-50 max-w-md space-y-2">
- {notificationQuestions.map((question) => (
+ {filteredQuestions.map((question) => (
<div
key={question.questionId}
className="bg-[#0d1b2d] border border-amber-500/50 rounded-lg shadow-lg overflow-hidden"