Format code

This commit is contained in:
2023-11-30 09:01:15 +07:00
parent 67c3764864
commit 350857c106
@@ -82,7 +82,7 @@ const reducer = (state: IUserRoomState, action: IAction) => {
usersAvailable: tempArr, usersAvailable: tempArr,
}; };
} }
case 'updateStatusUser': { case 'updateStatusUser': {
const tempArr = state.usersAvailable; const tempArr = state.usersAvailable;
const indexItemUpdate = tempArr.findIndex( const indexItemUpdate = tempArr.findIndex(
@@ -141,7 +141,7 @@ const reducer = (state: IUserRoomState, action: IAction) => {
roomsAvailable: tempArr, roomsAvailable: tempArr,
}; };
} }
default: default:
throw new Error('Action unknown'); throw new Error('Action unknown');
} }