only checking lb for englihs

This commit is contained in:
Jack 2021-09-07 17:53:08 +01:00
parent 1c710d609e
commit 7c672d76e8

View file

@ -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);
}