This commit is contained in:
dank074 2022-03-25 16:52:42 -05:00
parent 87d16f355c
commit 777bc066af

View File

@ -1,4 +1,4 @@
import { RoomEngineObjectEvent, RoomObjectCategory } from '@nitrots/nitro-renderer';
import { RoomEngineObjectEvent, RoomObjectCategory, RoomObjectType } from '@nitrots/nitro-renderer';
import { FC, useCallback, useReducer, useState } from 'react';
import { GetRoomSession } from '../../api';
import { Base, Button, DraggableWindowPosition, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../common';
@ -52,7 +52,7 @@ export const ModToolsView: FC<{}> = props =>
const userData = roomSession.userDataManager.getUserDataByIndex(event.objectId);
if(!userData) return;
if(!userData || userData.type !== RoomObjectType.USER) return;
setSelectedUser({ userId: userData.webID, username: userData.name });
}, []);