@veripass/react-sdk 1.0.13 → 1.0.14

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.
@@ -579,8 +579,9 @@ var AuthContext = /*#__PURE__*/React.createContext();
579
579
  * @returns {JSX.Element} The provider component for AuthContext.
580
580
  */
581
581
  var AuthProvider = function AuthProvider(_ref) {
582
- var children = _ref.children;
583
- _ref.publicUrls;
582
+ var children = _ref.children,
583
+ _ref$publicUrls = _ref.publicUrls,
584
+ publicUrls = _ref$publicUrls === void 0 ? [] : _ref$publicUrls;
584
585
  var _useState = React.useState(defaulPublicUrlList),
585
586
  _useState2 = _slicedToArray(_useState, 2),
586
587
  publicUrlsList = _useState2[0],
@@ -646,10 +647,10 @@ var AuthProvider = function AuthProvider(_ref) {
646
647
  return JSON.parse(value);
647
648
  };
648
649
 
649
- // Effect to update public URLs whenever additionalPublicUrls prop changes
650
+ // Effect to update public URLs whenever publicUrls prop changes
650
651
  React.useEffect(function () {
651
- setPublicUrlsList([].concat(_toConsumableArray(defaultPublicUrlList), _toConsumableArray(additionalPublicUrls)));
652
- }, [additionalPublicUrls]);
652
+ setPublicUrlsList([].concat(_toConsumableArray(defaultPublicUrlList), _toConsumableArray(publicUrls)));
653
+ }, [publicUrls]);
653
654
 
654
655
  // Effect to redirect if user is null
655
656
  React.useEffect(function () {