Fix fetching profile data call after saving a photo
This commit is contained in:
committed by
Adam Butterworth
parent
0e1a3356aa
commit
6a03a056d0
@@ -124,7 +124,7 @@ export function* handleSaveProfilePhoto(action) {
|
||||
yield call(ProfileApiService.postProfilePhoto, username, formData);
|
||||
|
||||
// Get the account data. Saving doesn't return anything on success.
|
||||
yield handleFetchProfile(fetchProfileAction);
|
||||
yield handleFetchProfile(fetchProfileAction(username));
|
||||
|
||||
yield put(saveProfilePhotoSuccess());
|
||||
yield put(saveProfilePhotoReset());
|
||||
@@ -141,7 +141,7 @@ export function* handleDeleteProfilePhoto(action) {
|
||||
yield call(ProfileApiService.deleteProfilePhoto, username);
|
||||
|
||||
// Get the account data. Saving doesn't return anything on success.
|
||||
yield handleFetchProfile(fetchProfileAction);
|
||||
yield handleFetchProfile(fetchProfileAction(username));
|
||||
|
||||
yield put(deleteProfilePhotoSuccess());
|
||||
yield put(deleteProfilePhotoReset());
|
||||
|
||||
Reference in New Issue
Block a user