Skip to content

Commit 8b7b543

Browse files
author
tsv2013
committed
Show survey name on run page only if survey title is not set
1 parent ad13dda commit 8b7b543

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/Run.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ const Run = () => {
3030
return (<>
3131
{surveyData === null && <div>Loading...</div>}
3232
{surveyData === undefined && <div>Survey not found</div>}
33-
{!!surveyData && <>
33+
{!!surveyData && !!surveyModel && !surveyModel.title && <>
3434
<h1>{surveyData.name}</h1>
35+
</>}
36+
{!!surveyModel && <>
3537
<Survey model={surveyModel}/>
3638
</>}
3739
</>);

0 commit comments

Comments
 (0)