From 9696f5269ddbc1ba090830f84cb17ac6624c777f Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Fri, 1 Jul 2022 13:41:48 +0400 Subject: Improve ErrorMessage Interface Unify the string and element types on the interface to clarify they are mutually exclusive. Signed-off-by: Hassan Abouelela --- src/components/Question.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/Question.tsx') diff --git a/src/components/Question.tsx b/src/components/Question.tsx index b42ea09..d4883ec 100644 --- a/src/components/Question.tsx +++ b/src/components/Question.tsx @@ -252,7 +252,7 @@ class RenderedQuestion extends React.Component { } const element =
{inner}
; - return ; + return ; } render(): JSX.Element { @@ -323,7 +323,7 @@ class RenderedQuestion extends React.Component { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore const message: string = this.props.public_state.get("error"); - error = ; + error = ; } return
-- cgit v1.2.3