Fix fetching profile data call after saving a photo

This commit is contained in:
Adam Butterworth
2019-02-26 11:29:26 -05:00
committed by Adam Butterworth
parent 0e1a3356aa
commit 6a03a056d0

View File

@@ -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());