diff --git a/packages/parrot-core/src/utils/getParams.js b/packages/parrot-core/src/utils/getParams.js index a8c0df8..2769e10 100644 --- a/packages/parrot-core/src/utils/getParams.js +++ b/packages/parrot-core/src/utils/getParams.js @@ -17,7 +17,7 @@ import { match } from 'path-to-regexp'; export default function getParams(path, route) { const matchRoute = match(route); const result = matchRoute(path); - if (result === false) { + if (!result) { return {}; } return result.params;