@nuskin/ns-shop 7.6.1-pa-148.1 → 7.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.6.1-pa-148.1",
3
+ "version": "7.6.1",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -149,7 +149,7 @@ const _doNewExternalPaymentProcess = (order) => {
149
149
  const path = encodeURIComponent(CartService.getCheckoutPage({route: 'orderSummary'}));
150
150
 
151
151
  // If we are on mynuskin.com we want to keep external payment on mynuskin.com. For developing localhost we don't want to stay on localhost
152
- if (!domain.includes('localhost') && !domain.includes('api.cloud.nuskin.com')) {
152
+ if (!domain.includes('localhost') && !redirectUrl.hostname.includes('api.cloud.nuskin.com')) {
153
153
  redirectUrl.hostname = window.location.hostname;
154
154
  }
155
155