contentoh-components-library 21.0.60 → 21.0.61

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.
@@ -103,7 +103,7 @@ var SignInLogin = function SignInLogin(props) {
103
103
  }
104
104
 
105
105
  if (!valid) {
106
- _context.next = 33;
106
+ _context.next = 32;
107
107
  break;
108
108
  }
109
109
 
@@ -157,7 +157,7 @@ var SignInLogin = function SignInLogin(props) {
157
157
  }
158
158
 
159
159
  case 25:
160
- _context.next = 33;
160
+ _context.next = 32;
161
161
  break;
162
162
 
163
163
  case 27:
@@ -165,21 +165,17 @@ var SignInLogin = function SignInLogin(props) {
165
165
  _context.t0 = _context["catch"](10);
166
166
  console.log(_context.t0.code);
167
167
  setLoading(false);
168
- console.log("error 1");
169
168
 
170
169
  if (_context.t0.code === "NotAuthorizedException") {
171
170
  setSignInError("NotAuthorizedException");
172
- console.log("not autho");
173
171
  } else if (_context.t0.code === "UserNotConfirmedException") {
174
- console.log("not user");
175
- sessionStorage.setItem("email", JSON.stringify(document.querySelector("#usernameInput").value.trim()));
176
172
  sessionStorage.setItem("email", JSON.stringify(email));
177
173
  props.setPaso(5);
178
174
  } else {
179
175
  setSignInError("Error");
180
176
  }
181
177
 
182
- case 33:
178
+ case 32:
183
179
  case "end":
184
180
  return _context.stop();
185
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.0.60",
3
+ "version": "21.0.61",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -89,18 +89,9 @@ export const SignInLogin = (props) => {
89
89
  } catch (error) {
90
90
  console.log(error.code);
91
91
  setLoading(false);
92
- console.log("error 1");
93
92
  if (error.code === "NotAuthorizedException") {
94
93
  setSignInError("NotAuthorizedException");
95
- console.log("not autho");
96
94
  } else if (error.code === "UserNotConfirmedException") {
97
- console.log("not user");
98
- sessionStorage.setItem(
99
- "email",
100
- JSON.stringify(
101
- document.querySelector("#usernameInput").value.trim()
102
- )
103
- );
104
95
  sessionStorage.setItem("email", JSON.stringify(email));
105
96
  props.setPaso(5);
106
97
  } else {