From a67ea73f2ea16e3c622758d38f39a935cc4593cb Mon Sep 17 00:00:00 2001 From: Scrum4Me Agent <30029041+madhura68@users.noreply.github.com> Date: Fri, 15 May 2026 05:10:33 +0200 Subject: [PATCH] refactor(notifications): gebruik question.options?.length als conditie Gebruik de kortere optional chaining variant consistent, conform plan. Co-Authored-By: Claude Sonnet 4.6 --- components/notifications/answer-modal.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/notifications/answer-modal.tsx b/components/notifications/answer-modal.tsx index 0123271..8a8d05b 100644 --- a/components/notifications/answer-modal.tsx +++ b/components/notifications/answer-modal.tsx @@ -115,7 +115,7 @@ export function AnswerModal({ question, isDemo, onClose }: AnswerModalProps) { {question.question} - {question.options && question.options.length > 0 && ( + {question.options?.length ? (

Kies een van de opties:

@@ -134,12 +134,12 @@ export function AnswerModal({ question, isDemo, onClose }: AnswerModalProps) { ))}
- )} + ) : null} -
0 ? 'space-y-1 border-t pt-4' : 'space-y-1'}> - {question.options && question.options.length > 0 && ( +
+ {question.options?.length ? (

Of typ een eigen antwoord

- )} + ) : null}