acsi-core 0.1.85 → 0.1.86

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/dist/index.js CHANGED
@@ -1734,7 +1734,7 @@ var useLogin = function useLogin(onNavigate, trackEvent) {
1734
1734
  };
1735
1735
  return Promise.resolve(apiSendEmailCode(body)).then(function (res) {
1736
1736
  var data = res.data;
1737
- if (data.status == 1) {
1737
+ if (data.success) {
1738
1738
  setIsScreenCode(true);
1739
1739
  } else {
1740
1740
  dispatch(setLoading(false));
@@ -1763,7 +1763,7 @@ var useLogin = function useLogin(onNavigate, trackEvent) {
1763
1763
  role: role
1764
1764
  })).then(function (res) {
1765
1765
  var data = res.data;
1766
- if (data.status == 1) {
1766
+ if (data.success) {
1767
1767
  localStorage.clear();
1768
1768
  var tokenJWT = data.data.token;
1769
1769
  localStorage.setItem(ACCESS_TOKEN, tokenJWT);