Open-source document signature platform. Not affiliated with DocuSign.
TypeScript
Let the disclosure notice scroll, and read the support address fresh
Claude25ad43114558
diff --git a/src/components/settings/organization-settings.tsx b/src/components/settings/organization-settings.tsxindex 3acca46..e5b8c35 100644--- a/src/components/settings/organization-settings.tsx+++ b/src/components/settings/organization-settings.tsx@@ -553,7 +553,10 @@ export function OrganizationSettings({}}}>- <DialogContent className="max-w-lg sm:p-8" showCloseButton={false}>+ <DialogContent+ className="max-h-[calc(100dvh-2rem)] max-w-lg overflow-y-auto sm:p-8"+ showCloseButton={false}+ ><DialogHeader className="space-y-3"><DialogTitle>{CUSTOM_DISCLOSURE_NOTICE.title}</DialogTitle><DialogDescription asChild>diff --git a/src/lib/signing.ts b/src/lib/signing.tsindex 0a73db7..adbdf72 100644--- a/src/lib/signing.ts+++ b/src/lib/signing.ts@@ -1754,14 +1754,16 @@ async function readSignerDisclosure(context: SigningContext,database: DbExecutor,) {- const branding = await getBranding();+ // Read fresh, not from the short settings cache, so the words and the+ // support address in them are the ones saved right now.+ const settings = resolveSettings(await readStoredSettings(database));const customDisclosure = normalizeCustomDisclosure(- resolveSettings(await readStoredSettings(database)).consentDisclosure,+ settings.consentDisclosure,);const sections = buildDisclosureSections({- contactAddress: branding.supportAddress ?? context.sender.email,+ contactAddress: settings.supportAddress ?? context.sender.email,senderName: normalizeSenderName(context.sender),},customDisclosure,