diff --git a/apps/web/src/app/(signing)/sign/[token]/complete/page.tsx b/apps/web/src/app/(signing)/sign/[token]/complete/page.tsx index 67af3c7fa..b9a8ba6d7 100644 --- a/apps/web/src/app/(signing)/sign/[token]/complete/page.tsx +++ b/apps/web/src/app/(signing)/sign/[token]/complete/page.tsx @@ -2,6 +2,7 @@ import Link from 'next/link'; import { notFound } from 'next/navigation'; import { CheckCircle2, Clock8 } from 'lucide-react'; +import { getServerSession } from 'next-auth'; import { match } from 'ts-pattern'; import signingCelebration from '@documenso/assets/images/signing-celebration.png'; @@ -53,6 +54,9 @@ export default async function CompletedSigningPage({ fields.find((field) => field.type === FieldType.NAME)?.customText || recipient.email; + const sessionData = await getServerSession(); + const isLoggedIn = !!sessionData?.user; + return (
- Want to send slick signing links like this one?{' '} - - Check out Documenso. + {isLoggedIn ? ( + + Go Back Home -
+ ) : ( ++ Want to send slick signing links like this one?{' '} + + Check out Documenso. + +
+ )} );