@salesgenterp/ui-components 0.4.244 → 0.4.245

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
@@ -7199,7 +7199,9 @@ var ContactUsForm = function ContactUsForm(_ref) {
7199
7199
  reset = _useForm.reset;
7200
7200
  var update = function update(formData) {
7201
7201
  try {
7202
- if (!isCaptchaVerified) return Promise.resolve(alert('Please Mark the captcha to continue'));
7202
+ if (googleReCaptchaKey) {
7203
+ if (!isCaptchaVerified) return Promise.resolve(alert('Please Mark the captcha to continue'));
7204
+ }
7203
7205
  var _temp3 = function () {
7204
7206
  if (apiEndPoint) {
7205
7207
  var _temp2 = function _temp2() {
@@ -7275,7 +7277,7 @@ var ContactUsForm = function ContactUsForm(_ref) {
7275
7277
  rows: 4,
7276
7278
  control: control,
7277
7279
  fontColor: fontColor
7278
- })), /*#__PURE__*/React__default.createElement(material.Grid, {
7280
+ })), googleReCaptchaKey && /*#__PURE__*/React__default.createElement(material.Grid, {
7279
7281
  item: true,
7280
7282
  xs: 12
7281
7283
  }, /*#__PURE__*/React__default.createElement(ReCAPTCHA, {