From ee4724283449cd6718851bfa4f79f905850947b0 Mon Sep 17 00:00:00 2001 From: Evgenij Ponomarev Date: Mon, 11 Mar 2024 00:59:26 +0700 Subject: [PATCH] Fix hasNoHeader function --- src/routes.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes.ts b/src/routes.ts index 1c1af79..5b5dde6 100755 --- a/src/routes.ts +++ b/src/routes.ts @@ -335,7 +335,10 @@ export const hasNoHeader = (path: string) => { let result = true; withoutHeaderRoutes.forEach((route) => { - if (path === route) { + if ( + !path.includes("palmistry") && path.includes(route) || + path.includes("palmistry") && path === route + ) { result = false; } });