Răsfoiți Sursa

improve readability

yohei0125 4 ani în urmă
părinte
comite
3d68af50ef
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;
 
   return useSWRImmutable(
-    includesUndefined || isEmptyPageInNotFoundContext ? null : key,
+    (includesUndefined || isEmptyPageInNotFoundContext) ? null : key,
     () => isPageExist && !isUserPage,
   );
 };