mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
utils tests
This commit is contained in:
@@ -21,8 +21,11 @@ const isBlankString = (value: string|number, field: string, event?: Event) => {
|
||||
if (event !== undefined) {
|
||||
event.preventDefault();
|
||||
}
|
||||
alert(`${field} can't be empty`);
|
||||
const msg = `${field} can't be empty`;
|
||||
alert(msg);
|
||||
throw new Error(msg);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
export default isBlankString;
|
||||
|
||||
Reference in New Issue
Block a user