src/store/reducers/AnimateMap.ts
Function animateMapReducer
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const animateMapReducer: AnimateMapReducer = (
state = initialAnimateMapState,
action: AnimateMapActions
): AnimateMapState => {
const immutableState = state;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...immutableState, hero: hero };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...immutableState, venues: venues };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...immutableState, pointer: pointer };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...immutableState, environmentSound: environmentSound };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...immutableState, room: room };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...immutableState, cameraRect: cameraRect };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return { ...immutableState, users: users };
- Create a ticketCreate a ticket