ui-kit-ck-consultant 0.5.309 → 0.5.310

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -104,11 +104,11 @@ var Modal = /*#__PURE__*/function (_React$Component) {
104
104
  if (e.target === e.currentTarget && !this.props.disableClose) {
105
105
  if (this.props.closeMessage) {
106
106
  if (window.confirmCustom) {
107
- window.confirmCustom(this.props.closeMessage), function () {
107
+ window.confirmCustom(this.props.closeMessage, function () {
108
108
  if (result) {
109
109
  _this2.props.onClose();
110
110
  }
111
- };
111
+ });
112
112
  } else {
113
113
  if (window.confirm(this.props.closeMessage)) {
114
114
  this.props.onClose();
@@ -166,11 +166,11 @@ var Modal = /*#__PURE__*/function (_React$Component) {
166
166
  onClick: function onClick() {
167
167
  if (_this3.props.closeMessage) {
168
168
  if (window.confirmCustom) {
169
- window.confirmCustom(_this3.props.closeMessage), function () {
169
+ window.confirmCustom(_this3.props.closeMessage, function () {
170
170
  if (result) {
171
171
  _this3.props.onClose();
172
172
  }
173
- };
173
+ });
174
174
  } else {
175
175
  if (window.confirm(_this3.props.closeMessage)) {
176
176
  _this3.props.onClose();