fixed leaderboards not working when not signed in

This commit is contained in:
Miodec 2022-10-21 22:44:01 +02:00
parent 2551a98bf5
commit 42a70c61bd

View file

@ -255,12 +255,12 @@ async function fillTable(lb: LbKey, prepend?: number): Promise<void> {
const loggedInUserName = DB.getSnapshot()?.name;
const snap = DB.getSnapshot();
if (!snap) return;
const avatarUrlPromises = currentData[lb].map(async (entry) => {
const isCurrentUser =
Auth?.currentUser &&
entry.uid === Auth?.currentUser.uid &&
snap &&
snap.discordAvatar &&
snap.discordId;