@riosst100/pwa-marketplace 1.9.7 → 1.9.8

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": "1.9.7",
4
+ "version": "1.9.8",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
@@ -40,10 +40,10 @@ const Adapter = props => {
40
40
  const match = location && location.pathname.split("/")[1];
41
41
  let websiteCodeInUrl = websiteCodes.find((str) => str === match);
42
42
 
43
- // const { getWebsiteByUserIp } = useWebsiteByIp(websiteCodeInUrl);
44
- const getWebsiteByUserIp = {
45
- countryCode: 'SG'
46
- }
43
+ const { getWebsiteByUserIp } = useWebsiteByIp(websiteCodeInUrl);
44
+ // const getWebsiteByUserIp = {
45
+ // countryCode: 'SG'
46
+ // }
47
47
 
48
48
  useEffect(() => {
49
49
  if (websiteCodeInUrl) {
@@ -91,7 +91,7 @@ const Adapter = props => {
91
91
  );
92
92
  }
93
93
  }
94
- }, [websiteCodeInUrl])
94
+ }, [websiteCodeInUrl, getWebsiteByUserIp])
95
95
 
96
96
  // TODO: Replace with app skeleton. See PWA-547.
97
97
  if (!initialized) {