changed error condition

This commit is contained in:
Miodec 2022-05-24 00:31:51 +02:00
parent 45722c0c5a
commit 2e3db31a39

View file

@ -27,7 +27,7 @@ export async function getLeaderboard(
);
}
if (leaderboard.length === 0) {
if (!leaderboard) {
throw new MonkeyError(
404,
`No ${mode} ${mode2} leaderboard found`,