From 16fb31b4bbe1766417d30da55fcedcc4becc9c3a Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 16 Aug 2021 01:43:32 -0400 Subject: [PATCH] Update choosers --- src/views/room/handlers/FurniChooserWidgetHandler.ts | 2 +- src/views/room/widgets/choosers/FurniChooserWidgetView.tsx | 4 ++-- src/views/room/widgets/choosers/UserChooserWidgetView.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/room/handlers/FurniChooserWidgetHandler.ts b/src/views/room/handlers/FurniChooserWidgetHandler.ts index f1dc79d7..dd687604 100644 --- a/src/views/room/handlers/FurniChooserWidgetHandler.ts +++ b/src/views/room/handlers/FurniChooserWidgetHandler.ts @@ -77,7 +77,7 @@ export class FurniChooserWidgetHandler extends RoomWidgetHandler private selectRoomObject(message: RoomWidgetRoomObjectMessage): void { - if(message.category !== RoomObjectCategory.WALL || message.category !== RoomObjectCategory.FLOOR) return; + if((message.category !== RoomObjectCategory.WALL) && (message.category !== RoomObjectCategory.FLOOR)) return; GetRoomEngine().selectRoomObject(this.container.roomSession.roomId, message.id, message.category); } diff --git a/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx b/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx index 0ac7ab55..d82775b2 100644 --- a/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx +++ b/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx @@ -55,7 +55,7 @@ export const FurniChooserWidgetView: FC<{}> = props => setItems(null); }, []); - if (!isVisible) return null; + if(!isVisible) return null; - return ; + return ; } diff --git a/src/views/room/widgets/choosers/UserChooserWidgetView.tsx b/src/views/room/widgets/choosers/UserChooserWidgetView.tsx index 4c8056af..6ef77e28 100644 --- a/src/views/room/widgets/choosers/UserChooserWidgetView.tsx +++ b/src/views/room/widgets/choosers/UserChooserWidgetView.tsx @@ -57,5 +57,5 @@ export const UserChooserWidgetView: FC<{}> = props => if(!isVisible) return null; - return ; + return ; }