diff --git a/src/utils/useTitle.js b/src/utils/useTitle.js index 38989fb6..e4a53825 100644 --- a/src/utils/useTitle.js +++ b/src/utils/useTitle.js @@ -19,7 +19,7 @@ export default function useTitle(title, path) { let matched = false; if (paths.length) { matched = paths.some((p) => matchPath(p, currentLocation)); - } else { + } else if (path) { matched = matchPath(path, currentLocation); } console.debug({ paths, matched, currentLocation });