Shun Miyazawa %!s(int64=3) %!d(string=hai) anos
pai
achega
6004731bd9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/app/src/components/Page.tsx

+ 2 - 2
packages/app/src/components/Page.tsx

@@ -64,8 +64,8 @@ export const Page: FC<Props> = (props: Props) => {
     tocRef.current = toc;
   }, []);
 
-  const { data: pathname } = useCurrentPathname();
-  const isSharedPage = pagePathUtils.isSharedPage(pathname ?? '');
+  const { data: currentPathname } = useCurrentPathname();
+  const isSharedPage = pagePathUtils.isSharedPage(currentPathname ?? '');
 
   const { data: shareLinkId } = useShareLinkId();
   const { mutate: mutateCurrentPage } = useSWRxCurrentPage();