Fix hasNoHeader function

This commit is contained in:
Evgenij Ponomarev 2024-03-11 00:59:26 +07:00
parent 3af1919ef7
commit ee47242834

View File

@ -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;
}
});