Browse Source

fix test error

ryoji-s 3 years ago
parent
commit
6e0e44e461
1 changed files with 1 additions and 1 deletions
  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));
 };
 
 /**