yohei0125 3 лет назад
Родитель
Сommit
ec157193c5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/stores/ui.tsx

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

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