We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e51571 + c31c09f commit cbf4a11Copy full SHA for cbf4a11
src/state/actions/users.js
@@ -228,9 +228,12 @@ export const modifyUser = ({
228
return async (dispatch, getState) => {
229
dispatch(USERS_MODIFY_USER_INIT());
230
const { locale } = getState().preferences;
231
- const { logoUrl } = getState()
232
- .users.data.filter(user => user.id === id)
233
- .pop();
+ const { logoUrl } = isProfile
+ ? getState().auth.userData
+ : getState()
234
+ .users.data.filter(user => user.id === id)
235
+ .pop();
236
+
237
let deleteLogoTask;
238
let uploadLogoTask;
239
let newLogoUrl = null;
0 commit comments