@depay/widgets 12.18.1 → 12.18.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/umd/index.js CHANGED
@@ -23856,6 +23856,8 @@
23856
23856
  }).code : new localCurrency.Currency({
23857
23857
  amount: 0
23858
23858
  }).code;
23859
+ var _useContext = React.useContext(ErrorContext),
23860
+ setError = _useContext.setError;
23859
23861
  var _useState = React.useState(!((_props$configuration = props.configuration) !== null && _props$configuration !== void 0 && _props$configuration.integration) ? _objectSpread$6(_objectSpread$6({}, props.configuration), {}, {
23860
23862
  currencyCode: currencyCode
23861
23863
  }) : undefined),
@@ -23864,8 +23866,10 @@
23864
23866
  setConfiguration = _useState2[1];
23865
23867
  var loadConfiguration = function loadConfiguration(id, attempt) {
23866
23868
  var _props$configuration2;
23867
- if (attempt >= 10) {
23868
- return;
23869
+ if (attempt > 3) {
23870
+ var msg = 'Unable to load payment configuration!';
23871
+ setError(msg);
23872
+ throw msg;
23869
23873
  }
23870
23874
  var retry = function retry() {
23871
23875
  setTimeout(function () {