From 75db3ae9fb43e291ad4f33c420932e148838fda9 Mon Sep 17 00:00:00 2001 From: Ben Reynolds Date: Wed, 11 Sep 2024 12:32:56 -0400 Subject: [PATCH] hide UI that says X users are following you, until your avatar has finished initializing --- src/avatar/iconMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avatar/iconMenu.js b/src/avatar/iconMenu.js index d3cd2af01..565741637 100644 --- a/src/avatar/iconMenu.js +++ b/src/avatar/iconMenu.js @@ -169,7 +169,7 @@ createNameSpace("realityEditor.avatar.iconMenu"); let myId = realityEditor.avatar.getMyAvatarId(); let usersFollowingMe = realityEditor.avatar.utils.getUsersFollowingUser(myId, connectedAvatars); - if (usersFollowingMe.length > 0) { + if (myId && usersFollowingMe.length > 0) { let plural = usersFollowingMe.length > 1; leaderContainer.textContent = `${usersFollowingMe.length} ${plural ? 'users are' : 'user is'} following your perspective. Click here to stop sharing.`; leaderContainer.style.display = '';