فهرست منبع

improve readability

yohei0125 4 سال پیش
والد
کامیت
3d68af50ef
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/app/src/stores/ui.tsx

+ 1 - 1
packages/app/src/stores/ui.tsx

@@ -346,7 +346,7 @@ export const useIsAbleToShowPageAuthors = (): SWRResponse<boolean, Error> => {
   const isPageExist = currentPageId != null;
   const isPageExist = currentPageId != null;
 
 
   return useSWRImmutable(
   return useSWRImmutable(
-    includesUndefined || isEmptyPageInNotFoundContext ? null : key,
+    (includesUndefined || isEmptyPageInNotFoundContext) ? null : key,
     () => isPageExist && !isUserPage,
     () => isPageExist && !isUserPage,
   );
   );
 };
 };