mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
changed error condition
This commit is contained in:
parent
45722c0c5a
commit
2e3db31a39
|
@ -27,7 +27,7 @@ export async function getLeaderboard(
|
|||
);
|
||||
}
|
||||
|
||||
if (leaderboard.length === 0) {
|
||||
if (!leaderboard) {
|
||||
throw new MonkeyError(
|
||||
404,
|
||||
`No ${mode} ${mode2} leaderboard found`,
|
||||
|
|
Loading…
Reference in a new issue