mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +01:00
Remove score for now
This commit is contained in:
parent
3af88077a0
commit
2155198fb0
@ -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) =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user