From c8ee9eaceb2996d7dddb35cc4dbe962910321d08 Mon Sep 17 00:00:00 2001 From: Alok Date: Thu, 27 Jun 2024 16:10:33 +0530 Subject: [PATCH] fix: minor mistake in string concatenation --- src/components/Container.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Container.tsx b/src/components/Container.tsx index 97ac2e7..4e0e17a 100644 --- a/src/components/Container.tsx +++ b/src/components/Container.tsx @@ -121,7 +121,7 @@ const Container: React.FC<{ }; const current = MenuEntries.findIndex( - ([, path]) => location === path || location.startsWith("${path}" + "/"), + ([, path]) => location === path || location.startsWith(path + "/"), ); const next = get.next(MenuEntries, current)[1]; const prev = get.prev(MenuEntries, current)[1];