Skip to content

Commit

Permalink
Fix HTB parser detection
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-8 authored and XeR committed Dec 10, 2022
1 parent d05519a commit fb06639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/ctfnote/parsers/htb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const HTBParser: Parser = {
challenge_category_id: number;
}>;
}>(s);
return data != null;
return Array.isArray(data?.challenges);
},
};

Expand Down

0 comments on commit fb06639

Please sign in to comment.