allowing undefined funbox through (same as none)

This commit is contained in:
Miodec 2022-10-17 13:03:32 +02:00
parent a845daf443
commit d44e4f7a12

View file

@ -397,8 +397,12 @@ export async function checkIfTagPb(
}
const { mode, tags: resultTags, funbox } = result;
if (funbox !== "none" && funbox !== "plus_one" && funbox !== "plus_two") {
if (
funbox !== undefined &&
funbox !== "none" &&
funbox !== "plus_one" &&
funbox !== "plus_two"
) {
return [];
}