aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMiodec <[email protected]>2024-11-14 23:15:07 +0100
committerMiodec <[email protected]>2024-11-14 23:15:07 +0100
commit23948f0d9fb3d191df3815b8b1853afb54fe010c (patch)
tree7075072deb1ddb259a8bcb4163fa5fb5ac908fd5
parente21a205c0a5660145abbd6f5081bee3560b1c87d (diff)
downloadmonkeytype-23948f0d9fb3d191df3815b8b1853afb54fe010c.tar.gz
monkeytype-23948f0d9fb3d191df3815b8b1853afb54fe010c.zip
fix: result screen showing pb mismatch when bailing out of long tests
-rw-r--r--frontend/src/ts/test/result.ts9
1 files changed, 8 insertions, 1 deletions
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<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",