From dc5a3ab26a24b53f6b5ee7cffe61bfabe4f7a552 Mon Sep 17 00:00:00 2001 From: aju-alen Date: Fri, 29 Nov 2024 15:13:24 +0400 Subject: [PATCH] changed conditiopnal logic for form active disable --- client/src/pages/UserSubmitSurvey.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/pages/UserSubmitSurvey.jsx b/client/src/pages/UserSubmitSurvey.jsx index 65c9755..ea21631 100644 --- a/client/src/pages/UserSubmitSurvey.jsx +++ b/client/src/pages/UserSubmitSurvey.jsx @@ -1234,7 +1234,9 @@ const UserSubmitSurvey = () => {
{(surveyData.surveyResponses > 500) && (

This survey has exceeded it's alloted responses. Please contact host.

)} - {(surveyData.surveyStatus !== 'Active') && (

This survey is not active. Please contact host.

)} + + + {(surveyData.surveyStatus === 'Disable') ? (

This survey is not active. Please contact host.

) : null} {(introduction && welcomePage && surveyData.surveyResponses <= 500 && surveyData.surveyStatus==='Active') && (

Hello, welcome to the survey!