diff --git a/package.json b/package.json index 28d0d95a..3dc509eb 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,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#940592cf131e3557e225d354736be92ab337c080", + "sharetribe-sdk": "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#d034401c335b115d41f283698d779d019906a419", "source-map-support": "^0.4.14", "url": "^0.11.0" }, diff --git a/src/ducks/user.duck.js b/src/ducks/user.duck.js index 7a9425a9..f69d40be 100644 --- a/src/ducks/user.duck.js +++ b/src/ducks/user.duck.js @@ -80,7 +80,8 @@ export const fetchCurrentUser = () => export const createStripeAccount = (bankAccountToken, country) => (dispatch, getState, sdk) => { dispatch(stripeAccountCreateRequest()); - return sdk.users.createStripeAccount({ bankAccountToken, country }) + return sdk.users + .createStripeAccount({ bankAccountToken, country }) .then(response => { dispatch(stripeAccountCreateSuccess(response)); return response; diff --git a/src/index.js b/src/index.js index 03d9a25b..f5f005e8 100644 --- a/src/index.js +++ b/src/index.js @@ -82,13 +82,11 @@ if (typeof window !== 'undefined') { } // Expose stuff for the browser REPL - if (config.dev) { - const actions = bindActionCreators( - { showListings, queryListings, searchListings, showMarketplace, showUsers }, - store.dispatch - ); - window.app = { config, sdk, sdkTypes: types, actions, store, sample, routeConfiguration }; - } + const actions = bindActionCreators( + { showListings, queryListings, searchListings, showMarketplace, showUsers }, + store.dispatch + ); + window.app = { config, sdk, sdkTypes: types, actions, store, sample, routeConfiguration }; } // Export the function for server side rendering. diff --git a/yarn.lock b/yarn.lock index 6ac1ae97..3ab59f23 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5949,9 +5949,9 @@ sharetribe-scripts@0.9.2: optionalDependencies: fsevents "1.0.17" -"sharetribe-sdk@git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#940592cf131e3557e225d354736be92ab337c080": +"sharetribe-sdk@git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#d034401c335b115d41f283698d779d019906a419": version "0.0.1" - resolved "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#940592cf131e3557e225d354736be92ab337c080" + resolved "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#d034401c335b115d41f283698d779d019906a419" dependencies: axios "^0.15.3" js-cookie "^2.1.3"