mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Format code
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user