diff --git a/app/web/src/components/UserProfile/userProfileConfig.tsx b/app/web/src/components/UserProfile/userProfileConfig.tsx index e3a0138..88c25bc 100644 --- a/app/web/src/components/UserProfile/userProfileConfig.tsx +++ b/app/web/src/components/UserProfile/userProfileConfig.tsx @@ -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 } diff --git a/app/web/src/components/Users/Users.js b/app/web/src/components/Users/Users.js index 35aaf52..9f4c7e6 100644 --- a/app/web/src/components/Users/Users.js +++ b/app/web/src/components/Users/Users.js @@ -19,10 +19,6 @@ const truncate = (text) => { return output } -const jsonTruncate = (obj) => { - return truncate(JSON.stringify(obj, null, 2)) -} - const timeTag = (datetime) => { return (