mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 21:09:18 +08:00
not saving pb if test was bailed out
This commit is contained in:
parent
843bee022b
commit
590ade59c6
1 changed files with 7 additions and 2 deletions
|
@ -220,8 +220,13 @@ class ResultController {
|
|||
//
|
||||
}
|
||||
|
||||
const isPb = await UserDAO.checkIfPb(uid, result);
|
||||
const tagPbs = await UserDAO.checkIfTagPb(uid, result);
|
||||
let isPb = false;
|
||||
let tagPbs = [];
|
||||
|
||||
if (!result.bailedOut) {
|
||||
isPb = await UserDAO.checkIfPb(uid, result);
|
||||
tagPbs = await UserDAO.checkIfTagPb(uid, result);
|
||||
}
|
||||
|
||||
if (isPb) {
|
||||
result.isPb = true;
|
||||
|
|
Loading…
Reference in a new issue