From 23948f0d9fb3d191df3815b8b1853afb54fe010c Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 14 Nov 2024 23:15:07 +0100 Subject: [PATCH] fix: result screen showing pb mismatch when bailing out of long tests --- frontend/src/ts/test/result.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/test/result.ts b/frontend/src/ts/test/result.ts index 14836ddc1..52a9b1cd7 100644 --- a/frontend/src/ts/test/result.ts +++ b/frontend/src/ts/test/result.ts @@ -482,8 +482,9 @@ async function resultCanGetPb(): Promise { 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 { reason: "stop on letter", }; } + if (!notBailedOut) { + return { + value: false, + reason: "bailed out", + }; + } return { value: false, reason: "unknown",