mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-18 03:26:07 +08:00
changed error condition
This commit is contained in:
parent
45722c0c5a
commit
2e3db31a39
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export async function getLeaderboard(
|
|||
);
|
||||
}
|
||||
|
||||
if (leaderboard.length === 0) {
|
||||
if (!leaderboard) {
|
||||
throw new MonkeyError(
|
||||
404,
|
||||
`No ${mode} ${mode2} leaderboard found`,
|
||||
|
|
Loading…
Add table
Reference in a new issue