Remove score for now

This commit is contained in:
Bill 2022-03-17 00:28:10 -04:00
parent 3af88077a0
commit 2155198fb0

View File

@ -93,18 +93,7 @@ export const NavigatorMessageHandler: FC<{}> = props =>
const onRoomScoreEvent = useCallback((event: RoomScoreEvent) => const onRoomScoreEvent = useCallback((event: RoomScoreEvent) =>
{ {
const parser = event.getParser(); const parser = event.getParser();
}, [ ]);
const roomInfoData = navigatorState.roomInfoData;
roomInfoData.canRate = parser.canLike;
roomInfoData.enteredGuestRoom.score = parser.totalLikes;
dispatchNavigatorState({
type: NavigatorActions.SET_ROOM_INFO_DATA,
payload: {
roomInfoData: roomInfoData
}
});
}, [ dispatchNavigatorState, navigatorState ]);
const onRoomDoorbellEvent = useCallback((event: RoomDoorbellEvent) => const onRoomDoorbellEvent = useCallback((event: RoomDoorbellEvent) =>
{ {