@depay/widgets 12.18.1 → 12.18.3

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.
@@ -23898,6 +23898,8 @@ var ConfigurationProvider = (function (props) {
23898
23898
  }).code : new Currency({
23899
23899
  amount: 0
23900
23900
  }).code;
23901
+ var _useContext = useContext(ErrorContext),
23902
+ setError = _useContext.setError;
23901
23903
  var _useState = useState(!((_props$configuration = props.configuration) !== null && _props$configuration !== void 0 && _props$configuration.integration) ? _objectSpread$6(_objectSpread$6({}, props.configuration), {}, {
23902
23904
  currencyCode: currencyCode
23903
23905
  }) : undefined),
@@ -23906,8 +23908,10 @@ var ConfigurationProvider = (function (props) {
23906
23908
  setConfiguration = _useState2[1];
23907
23909
  var loadConfiguration = function loadConfiguration(id, attempt) {
23908
23910
  var _props$configuration2;
23909
- if (attempt >= 10) {
23910
- return;
23911
+ if (attempt > 3) {
23912
+ var msg = 'Unable to load payment configuration!';
23913
+ setError(msg);
23914
+ throw msg;
23911
23915
  }
23912
23916
  var retry = function retry() {
23913
23917
  setTimeout(function () {