From 1bef3f4c0f7fae4d88463d5f59fd98c6b982e636 Mon Sep 17 00:00:00 2001 From: Scott McIntyre Date: Fri, 25 Oct 2024 09:54:13 -0400 Subject: [PATCH] fix: pr feedback --- packages/parrot-core/src/utils/getParams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;