Fix furni infostand

This commit is contained in:
Bill 2022-07-20 01:32:09 -04:00
parent 33a40ddb7d
commit cabf4ecca1
2 changed files with 3 additions and 3 deletions

View File

@ -60,6 +60,8 @@ export const AvatarInfoWidgetView: FC<{}> = props =>
case AvatarInfoFurni.FURNI: {
const info = (avatarInfo as AvatarInfoFurni);
if(!isDecorating) return null;
return <AvatarInfoWidgetFurniView avatarInfo={ info } close={ () => setAvatarInfo(null) } />;
}
case AvatarInfoUser.OWN_USER:

View File

@ -68,8 +68,6 @@ const useAvatarInfoWidgetState = () =>
{
case RoomObjectCategory.FLOOR:
case RoomObjectCategory.WALL:
if(!isDecorating) break;
info = AvatarInfoUtilities.getFurniInfo(objectId, category)
break;
case RoomObjectCategory.UNIT: {
@ -282,7 +280,7 @@ const useAvatarInfoWidgetState = () =>
useObjectRollOutEvent(event =>
{
if(!activeNameBubble || (activeNameBubble.roomIndex !== event.id)) return;
if(!activeNameBubble || (event.category !== RoomObjectCategory.UNIT) || (activeNameBubble.roomIndex !== event.id)) return;
setActiveNameBubble(null);
});