Explorar el Código

fix currentPagePath returning blank when null

taikou-m hace 10 meses
padre
commit
69352d7887
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apps/app/src/client/components/PageControls/PageControls.tsx

+ 1 - 1
apps/app/src/client/components/PageControls/PageControls.tsx

@@ -140,7 +140,7 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
   const { data: isUsersHomepageDeletionEnabled } = useIsUsersHomepageDeletionEnabled();
   const { data: isUsersHomepageDeletionEnabled } = useIsUsersHomepageDeletionEnabled();
   const { data: currentPagePath } = useCurrentPagePath();
   const { data: currentPagePath } = useCurrentPagePath();
 
 
-  const isUsersHomepage = pagePathUtils.isUsersHomepage(currentPagePath ?? '');
+  const isUsersHomepage = pagePathUtils.isUsersHomepage(currentPagePath ?? 'false');
 
 
   const { mutate: mutatePageInfo } = useSWRxPageInfo(pageId, shareLinkId);
   const { mutate: mutatePageInfo } = useSWRxPageInfo(pageId, shareLinkId);