made sure to return board info, and triple checking that the board is empty to not return uids

This commit is contained in:
Jack 2020-07-04 02:44:08 +01:00
parent a6b43d7518
commit 48bb520795

View file

@ -928,7 +928,15 @@ exports.getLeaderboard = functions.https.onCall((request, response) => {
return lbdata;
} else {
return [];
if (
lbdata.board === undefined ||
lbdata.board === [] ||
lbdata.board.length === 0
) {
return lbdata;
} else {
return [];
}
}
});
});