Clean name

This commit is contained in:
Snaiker 2022-03-18 22:27:27 +00:00
parent 1a3b9154a1
commit 51ea8fe4a3

View File

@ -8,7 +8,7 @@ export const FurniChooserWidgetView: FC<{}> = props =>
{ {
const [ isVisible, setIsVisible ] = useState(false); const [ isVisible, setIsVisible ] = useState(false);
const [ items, setItems ] = useState<RoomObjectItem[]>(null); const [ items, setItems ] = useState<RoomObjectItem[]>(null);
const [ isModerator, setIsmModerator ] = useState<boolean>(false); const [ isModerator, setIsModerator ] = useState<boolean>(false);
const [ refreshTimeout, setRefreshTimeout ] = useState<ReturnType<typeof setTimeout>>(null); const [ refreshTimeout, setRefreshTimeout ] = useState<ReturnType<typeof setTimeout>>(null);
const { eventDispatcher = null, widgetHandler = null } = useRoomContext(); const { eventDispatcher = null, widgetHandler = null } = useRoomContext();
@ -29,7 +29,7 @@ export const FurniChooserWidgetView: FC<{}> = props =>
BatchUpdates(() => BatchUpdates(() =>
{ {
setItems(event.items); setItems(event.items);
setIsmModerator(event.isModerator); setIsModerator(event.isModerator);
setIsVisible(true); setIsVisible(true);
}); });
}, []); }, []);