mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-17 19:15:59 +08:00
only checking lb for englihs
This commit is contained in:
parent
1c710d609e
commit
7c672d76e8
1 changed files with 4 additions and 1 deletions
|
@ -1815,7 +1815,10 @@ export async function finish(difficultyFailed = false) {
|
|||
);
|
||||
} else {
|
||||
completedEvent._id = response.data.insertedId;
|
||||
if (response.data.isPb) {
|
||||
if (
|
||||
response.data.isPb &&
|
||||
["enligsh"].includes(completedEvent.language)
|
||||
) {
|
||||
completedEvent.isPb = true;
|
||||
TestLeaderboards.check(completedEvent);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue