@riosst100/pwa-marketplace 2.2.8 → 2.3.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "2.2.8",
4
+ "version": "2.3.0",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
@@ -39,10 +39,10 @@ const ProductListTab = props => {
39
39
  'label': 'Pre Order',
40
40
  'value': 'lof_preorder'
41
41
  },
42
- {
43
- 'label': 'Auction',
44
- 'value': 'auction'
45
- }
42
+ // {
43
+ // 'label': 'Auction',
44
+ // 'value': 'auction'
45
+ // }
46
46
  ];
47
47
 
48
48
  const handleClickremove = useCallback((group, item) => {
@@ -156,7 +156,7 @@ export const useStoreSwitcher = (props = {}) => {
156
156
  newPath = routeData.route.relative_url;
157
157
  }
158
158
  }
159
- return newPath.startsWith('/') ? newPath.substr(1) : newPath;
159
+ return newPath?.startsWith('/') ? newPath.substr(1) : newPath;
160
160
  },
161
161
  [pathname, fetchRouteData, internalRoutes]
162
162
  );
@@ -136,7 +136,7 @@ export const useMagentoRoute = (props = {}) => {
136
136
  // REDIRECT
137
137
  routeData = {
138
138
  isRedirect: true,
139
- relativeUrl: relative_url.startsWith('/')
139
+ relativeUrl: relative_url?.startsWith('/')
140
140
  ? relative_url
141
141
  : '/' + relative_url
142
142
  };
@@ -156,7 +156,7 @@ export const useWebsiteSwitcher = (props = {}) => {
156
156
  newPath = routeData.route.relative_url;
157
157
  }
158
158
  }
159
- return newPath.startsWith('/') ? newPath.substr(1) : newPath;
159
+ return newPath?.startsWith('/') ? newPath.substr(1) : newPath;
160
160
  },
161
161
  [pathname, fetchRouteData, internalRoutes]
162
162
  );
@@ -156,7 +156,7 @@ export const useWebsiteSwitcher = (props = {}) => {
156
156
  newPath = routeData.route.relative_url;
157
157
  }
158
158
  }
159
- return newPath.startsWith('/') ? newPath.substr(1) : newPath;
159
+ return newPath?.startsWith('/') ? newPath.substr(1) : newPath;
160
160
  },
161
161
  [pathname, fetchRouteData, internalRoutes]
162
162
  );