From 25995a2b670e5cacb507364818afcb7556ce017e Mon Sep 17 00:00:00 2001 From: Nicole Xu Date: Sun, 7 Dec 2025 13:50:09 -0500 Subject: [PATCH] fix eligibility check bug --- backend/siarnaq/api/teams/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/siarnaq/api/teams/views.py b/backend/siarnaq/api/teams/views.py index 5b9783c15..601675535 100644 --- a/backend/siarnaq/api/teams/views.py +++ b/backend/siarnaq/api/teams/views.py @@ -134,7 +134,10 @@ def me(self, request, *, episode_id): serializer.save() return Response(serializer.data) case "patch": - if request.data["profile"] is not None: + if ( + request.data["profile"] is not None + and "eligible_for" in request.data["profile"] + ): # If user is editing their profile, verify that they've # selected valid eligibility criteria. if eligible_for := request.data["profile"]["eligible_for"]: