소스 검색

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;
 
   return useSWRImmutable(
-    includesUndefined || isEmptyPageInNotFoundContext ? null : key,
+    (includesUndefined || isEmptyPageInNotFoundContext) ? null : key,
     () => isPageExist && !isUserPage,
   );
 };