diff --git a/app/[leaflet_id]/Sidebar.tsx b/app/[leaflet_id]/Sidebar.tsx index 7ea79c81..6708967b 100644 --- a/app/[leaflet_id]/Sidebar.tsx +++ b/app/[leaflet_id]/Sidebar.tsx @@ -27,11 +27,11 @@ export function LeafletSidebar(props: { leaflet_id: string }) { > - - {entity_set.permissions.write ? ( - pub?.publications ? ( + {entity_set.permissions.write && ( + + {pub?.publications ? ( <> @@ -47,15 +47,12 @@ export function LeafletSidebar(props: { leaflet_id: string }) {
- ) - ) : ( -
- -
- )} -
-
- + )} + + )} +
+ +
); diff --git a/components/HomeButton.tsx b/components/HomeButton.tsx index ee5ae357..ec73e044 100644 --- a/components/HomeButton.tsx +++ b/components/HomeButton.tsx @@ -15,21 +15,19 @@ export function HomeButton() { let { permissions } = useEntitySetContext(); let searchParams = useSearchParams(); - if (permissions.write) - return ( - <> - - } label="Go Home" /> - - {} - - ); - return null; + return ( + <> + + } label="Go Home" /> + + {} + + ); } const AddToHomeButton = (props: {}) => {