diff --git a/hotel-management/src/contexts/UserRoomAvailableContext.ts b/hotel-management/src/contexts/UserRoomAvailableContext.ts index d7e3bed..36ef21b 100644 --- a/hotel-management/src/contexts/UserRoomAvailableContext.ts +++ b/hotel-management/src/contexts/UserRoomAvailableContext.ts @@ -82,7 +82,7 @@ const reducer = (state: IUserRoomState, action: IAction) => { usersAvailable: tempArr, }; } - + case 'updateStatusUser': { const tempArr = state.usersAvailable; const indexItemUpdate = tempArr.findIndex( @@ -141,7 +141,7 @@ const reducer = (state: IUserRoomState, action: IAction) => { roomsAvailable: tempArr, }; } - + default: throw new Error('Action unknown'); }