src/redux/reducers/upload-reducer.tsx
Function uploadReducer
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const uploadReducer = (state = initState, action) => {
switch (action.type) {
case navigationActions.VISIT_UPLOAD_FORM:
return initState; // resets state.
Avoid too many return
statements within this function. Open
Open
return { ...state, handle: handle, uploadProgress: 100 };