Explorar el Código

fix test error

ryoji-s hace 3 años
padre
commit
6e0e44e461
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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));
 };
 
 /**