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 +++--- src/pages/FormPage.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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: diff --git a/src/pages/FormPage.tsx b/src/pages/FormPage.tsx index 7798be6..f0fb548 100644 --- a/src/pages/FormPage.tsx +++ b/src/pages/FormPage.tsx @@ -197,7 +197,7 @@ function FormPage(): JSX.Element { if (!form) { return ; } - + const refMap: Map> = new Map(); const questions = form.questions.map((question, index) => { const questionRef = createRef(); -- cgit v1.2.3