From 20a1d2dfb810cdbed70514d3917e95ef620cfc78 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Mon, 8 Feb 2021 19:50:25 +0200 Subject: Remove trailing whitespaces --- src/components/Question.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/Question.tsx') diff --git a/src/components/Question.tsx b/src/components/Question.tsx index e619a45..9a15a07 100644 --- a/src/components/Question.tsx +++ b/src/components/Question.tsx @@ -99,7 +99,7 @@ class RenderedQuestion extends React.Component { case "text": this.setPublicState("valid", true); break; - + case "checkbox": // We need to check this here, because checkbox doesn't have onBlur if (this.props.question.required && typeof options !== "string") { @@ -135,13 +135,13 @@ class RenderedQuestion extends React.Component { let invalid = false; const options: string | string[] = this.props.question.data["options"]; switch (this.props.question.type) { - case QuestionType.TextArea: + case QuestionType.TextArea: case QuestionType.ShortText: if (this.props.public_state.get("value") === "") { invalid = true; } break; - + case QuestionType.Select: case QuestionType.Range: case QuestionType.Radio: -- cgit v1.2.3