mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
levels tests
This commit is contained in:
@@ -23,13 +23,8 @@ import getLevelFields from './getLevelFields';
|
||||
* its contents
|
||||
* */
|
||||
const validateLevel = (id: number) => {
|
||||
const level = getLevelFields(id);
|
||||
|
||||
if (level === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
const level = getLevelFields(id);
|
||||
LEVELS.add(level);
|
||||
return true;
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user