fix: zod pin validation failing (#1507)

This commit is contained in:
Dhruwang Jariwala
2023-10-30 16:07:05 +05:30
committed by GitHub
parent 7d0ebd3c54
commit 59113ebe59

View File

@@ -76,7 +76,7 @@ export default function ResponseOptionsCard({
};
const handleProtectSurveyWithPinToggle = () => {
setLocalSurvey((prevSurvey) => ({ ...prevSurvey, pin: isPinProtectionEnabled ? null : 1234 }));
setLocalSurvey((prevSurvey) => ({ ...prevSurvey, pin: isPinProtectionEnabled ? null : "1234" }));
};
const handleProtectSurveyPinChange = (pin: string) => {