@insforge/react 0.2.1 → 0.2.2

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.mjs CHANGED
@@ -2033,7 +2033,7 @@ function validateEmail(email) {
2033
2033
  if (result.success) {
2034
2034
  return { valid: true };
2035
2035
  }
2036
- return { valid: false, error: result.error.errors[0]?.message };
2036
+ return { valid: false, error: result.error.message };
2037
2037
  }
2038
2038
  function validatePassword(password, options) {
2039
2039
  const schema = createPasswordSchema(options);
@@ -2041,7 +2041,7 @@ function validatePassword(password, options) {
2041
2041
  if (result.success) {
2042
2042
  return { valid: true };
2043
2043
  }
2044
- return { valid: false, error: result.error.errors[0]?.message };
2044
+ return { valid: false, error: result.error.message };
2045
2045
  }
2046
2046
  function checkPasswordStrength(password) {
2047
2047
  const feedback = [];