fix: result screen showing pb mismatch when bailing out of long tests

This commit is contained in:
Miodec 2024-11-14 23:15:07 +01:00
parent e21a205c0a
commit 23948f0d9f

View file

@ -482,8 +482,9 @@ async function resultCanGetPb(): Promise<CanGetPbObject> {
const funboxesOk =
result.funbox === "none" || funboxes.length === 0 || allFunboxesCanGetPb;
const notUsingStopOnLetter = Config.stopOnError !== "letter";
const notBailedOut = !result.bailedOut;
if (funboxesOk && notUsingStopOnLetter) {
if (funboxesOk && notUsingStopOnLetter && notBailedOut) {
return {
value: true,
};
@ -500,6 +501,12 @@ async function resultCanGetPb(): Promise<CanGetPbObject> {
reason: "stop on letter",
};
}
if (!notBailedOut) {
return {
value: false,
reason: "bailed out",
};
}
return {
value: false,
reason: "unknown",