Ver Fonte

fix test error

ryoji-s há 3 anos atrás
pai
commit
6e0e44e461
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/core/src/utils/page-path-utils/index.ts

+ 1 - 1
packages/core/src/utils/page-path-utils/index.ts

@@ -41,7 +41,7 @@ export const isUsersHomePage = (path: string): boolean => {
  * @param path
  */
 export const isUsersProtectedPages = (path: string, isUserPageDeletionEnabled = false): boolean => {
-  return isUsersTopPage(path) || isUserPageDeletionEnabled ? false : isUsersHomePage(path);
+  return isUsersTopPage(path) || (isUserPageDeletionEnabled ? false : isUsersHomePage(path));
 };
 
 /**