mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
fixed leaderboards not working when not signed in
This commit is contained in:
parent
2551a98bf5
commit
42a70c61bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue