aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Question.tsx
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-02-08 19:50:25 +0200
committerGravatar ks129 <[email protected]>2021-02-08 19:50:25 +0200
commit20a1d2dfb810cdbed70514d3917e95ef620cfc78 (patch)
treed5d773fac184b3be76957d5c5f04728c1de1eb16 /src/components/Question.tsx
parentCreate refMap to avoid errors on direct ref access (diff)
Remove trailing whitespaces
Diffstat (limited to 'src/components/Question.tsx')
-rw-r--r--src/components/Question.tsx6
1 files changed, 3 insertions, 3 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<QuestionProp> {
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<QuestionProp> {
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: