diff --git a/package.json b/package.json index 469b2be9..156500da 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "redux-thunk": "^2.2.0", "sanitize.css": "^5.0.0", "sharetribe-scripts": "0.9.2", - "sharetribe-sdk": "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#917869bbbfc791a38da193c956645779864c049d", + "sharetribe-sdk": "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#0ae201201c03c6031bf9c1ab281470dca9015621", "source-map-support": "^0.4.15", "url": "^0.11.0" }, diff --git a/src/containers/ProfileSettingsPage/ProfileSettingsPage.duck.js b/src/containers/ProfileSettingsPage/ProfileSettingsPage.duck.js index b4e92d26..ce49561d 100644 --- a/src/containers/ProfileSettingsPage/ProfileSettingsPage.duck.js +++ b/src/containers/ProfileSettingsPage/ProfileSettingsPage.duck.js @@ -71,7 +71,7 @@ export function requestImageUpload(actionPayload) { dispatch(uploadImage(actionPayload)); return sdk.images - .uploadListingImage({ image: actionPayload.file }) + .uploadProfileImage({ image: actionPayload.file }) .then(resp => dispatch(uploadImageSuccess({ data: { id, imageId: resp.data.data.id } }))) .catch(e => dispatch(uploadImageError({ id, error: e }))); }; diff --git a/yarn.lock b/yarn.lock index 98c75638..f02a1d9e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6242,9 +6242,9 @@ sharetribe-scripts@0.9.2: optionalDependencies: fsevents "1.0.17" -"sharetribe-sdk@git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#917869bbbfc791a38da193c956645779864c049d": +"sharetribe-sdk@git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#0ae201201c03c6031bf9c1ab281470dca9015621": version "0.0.1" - resolved "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#917869bbbfc791a38da193c956645779864c049d" + resolved "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#0ae201201c03c6031bf9c1ab281470dca9015621" dependencies: axios "^0.15.3" js-cookie "^2.1.3"