a tool for shared writing and social publishing

check for draft before rendering edit link

+2 -2
+2 -2
app/lish/[did]/[publication]/[rkey]/PostPage.tsx
··· 85 85 <hr className="border-border-light mb-4 mt-4" /> 86 86 {identity && 87 87 identity.atp_did === 88 - document.documents_in_publications[0]?.publications 89 - ?.identity_did ? ( 88 + document.documents_in_publications[0]?.publications?.identity_did && 89 + document.leaflets_in_publications[0] ? ( 90 90 <a 91 91 href={`https://leaflet.pub/${document.leaflets_in_publications[0].leaflet}`} 92 92 className="flex gap-2 items-center hover:no-underline! selected-outline px-2 py-0.5 bg-accent-1 text-accent-2 font-bold w-fit rounded-lg border-accent-1! outline-accent-1! mx-auto"