@veripass/react-sdk 1.0.17 → 1.0.18
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/react-sdk.cjs.js
CHANGED
|
@@ -597,7 +597,7 @@ var AuthProvider = function AuthProvider(_ref) {
|
|
|
597
597
|
var extractPublicPaths = function extractPublicPaths(child) {
|
|
598
598
|
var parentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
599
599
|
if (/*#__PURE__*/React.isValidElement(child)) {
|
|
600
|
-
var currentPath = "".concat(parentPath).concat(child.props.path
|
|
600
|
+
var currentPath = "".concat(parentPath).concat(child.props.path ? "/".concat(child.props.path) : '').replace(/\/+/g, '/');
|
|
601
601
|
if (child.props.isPublic) {
|
|
602
602
|
publicPaths.add(currentPath);
|
|
603
603
|
}
|