Skip to content

Commit 3d34264

Browse files
TOPOFGRtpiaggio
authored andcommitted
Solved profile editing issue
1 parent 4be0d6d commit 3d34264

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/state/actions/users.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,12 @@ export const modifyUser = ({
228228
return async (dispatch, getState) => {
229229
dispatch(USERS_MODIFY_USER_INIT());
230230
const { locale } = getState().preferences;
231-
const { logoUrl } = getState()
232-
.users.data.filter(user => user.id === id)
233-
.pop();
231+
const { logoUrl } = isProfile
232+
? getState().auth.userData
233+
: getState()
234+
.users.data.filter(user => user.id === id)
235+
.pop();
236+
234237
let deleteLogoTask;
235238
let uploadLogoTask;
236239
let newLogoUrl = null;

0 commit comments

Comments
 (0)