Fixing linting problem from running yarn rw lint

✖ 118 problems (65 errors, 53 warnings) currently
This commit is contained in:
Kurt Hutten
2021-09-29 07:01:50 +10:00
parent ab92894a2d
commit a346884fc6
12 changed files with 38 additions and 35 deletions

View File

@@ -19,7 +19,7 @@ export interface UserProfileType {
loading: boolean
error: boolean
onSave: Function
projects: {}[]
projects: any[]
}
export interface FieldType {
@@ -205,14 +205,13 @@ export function fieldReducer(state, action) {
},
}
case 'SET_NEW_VALUE':
const newState = {
return {
...state,
[action.payload.field]: {
...state[action.payload.field],
newValue: action.payload.value,
},
}
return newState
default:
return state
}