@nuskin/ns-shop 5.21.0 → 5.21.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 +1 -1
- package/src/receiver.js +5 -1
package/package.json
CHANGED
package/src/receiver.js
CHANGED
|
@@ -372,7 +372,11 @@ const eventListener = async (message) => {
|
|
|
372
372
|
if (data.eid) {
|
|
373
373
|
await authenticateWithEid(data.eid);
|
|
374
374
|
} else if (data.user && data.user.eid) {
|
|
375
|
-
|
|
375
|
+
if (RunConfigService.getRunConfig().country === 'JP') {
|
|
376
|
+
await authenticateWithEid(data.user.eid);
|
|
377
|
+
} else {
|
|
378
|
+
setUserInfo(data.user);
|
|
379
|
+
}
|
|
376
380
|
} else {
|
|
377
381
|
if (AuthenticationService.isLoggedIn()) {
|
|
378
382
|
CartService.clearCart();
|