diff --git a/app/(home-pages)/home/Actions/CreateNewButton.tsx b/app/(home-pages)/home/Actions/CreateNewButton.tsx
index 8d2203be..9b4b2ed9 100644
--- a/app/(home-pages)/home/Actions/CreateNewButton.tsx
+++ b/app/(home-pages)/home/Actions/CreateNewButton.tsx
@@ -68,9 +68,9 @@ export const CreateNewMoreOptionsButton = (props: {}) => {
/>
}
>
-
New Leaflet
+ New Leaflet
- New Draft
-
+
+ New Draft
+
+
{identity?.publications.map((pub) => {
let router = useRouter();
return (
@@ -124,12 +134,6 @@ export const CreateNewMoreOptionsButton = (props: {}) => {
);
})}
-
-
-
);
};
diff --git a/components/ActionBar/Publications.tsx b/components/ActionBar/Publications.tsx
index f8f5abfc..e6465cb2 100644
--- a/components/ActionBar/Publications.tsx
+++ b/components/ActionBar/Publications.tsx
@@ -23,8 +23,8 @@ export const PublicationButtons = (props: {
currentPubUri: string | undefined;
}) => {
let { identity } = useIdentityData();
- let hasLooseleafs = !!identity?.permission_token_on_homepage.find(
- (f) => f.permission_tokens.leaflets_to_documents,
+ let hasLooseleafs = identity?.permission_token_on_homepage.find(
+ (f) => f.permission_tokens.leaflets_to_documents[0],
);
console.log(hasLooseleafs);