Skip to content

Commit

Permalink
changed conditiopnal logic for form active disable
Browse files Browse the repository at this point in the history
  • Loading branch information
aju-alen committed Nov 29, 2024
1 parent ac1115d commit dc5a3ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/pages/UserSubmitSurvey.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,9 @@ const UserSubmitSurvey = () => {
<div className=" flex justify-center items-center h-screen">
{(surveyData.surveyResponses > 500) && (<h1 className=' font-bold text-blue-500 text-xl'> This survey has exceeded it's alloted responses. Please contact host.</h1>)}

{(surveyData.surveyStatus !== 'Active') && (<h1 className=' font-bold text-blue-500 text-xl'> This survey is not active. Please contact host.</h1>)}


{(surveyData.surveyStatus === 'Disable') ? (<h1 className=' font-bold text-blue-500 text-xl'> This survey is not active. Please contact host.</h1>) : null}

{(introduction && welcomePage && surveyData.surveyResponses <= 500 && surveyData.surveyStatus==='Active') && (<div className=" flex flex-col">
<h1 className=' font-bold text-blue-500 text-xl text-center'>Hello, welcome to the survey!</h1>
Expand Down

0 comments on commit dc5a3ab

Please sign in to comment.