mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-22 02:55:04 -05:00
fix: survey with empty pin cannot be created (#1361)
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ export default function SurveyMenuBar({
|
||||
}
|
||||
|
||||
let pin = survey?.pin;
|
||||
if (!pin || pin.toString().length !== 4) {
|
||||
if (pin !== null && pin.toString().length !== 4) {
|
||||
toast.error("PIN must be a four digit number.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user