Skip to content

The Open Source DocuSign Alternative.

fix: dateformat bug (#1372)

Catalin Pit5f19dcf25c7a
diff --git a/packages/ui/primitives/document-flow/add-settings.tsx b/packages/ui/primitives/document-flow/add-settings.tsx
index 87c705353..06cf5e9ea 100644
--- a/packages/ui/primitives/document-flow/add-settings.tsx
+++ b/packages/ui/primitives/document-flow/add-settings.tsx
@@ -95,7 +95,7 @@ export const AddSettingsFormPartial = ({
TIME_ZONES.find((timezone) => timezone === document.documentMeta?.timezone) ??
DEFAULT_DOCUMENT_TIME_ZONE,
dateFormat:
- DATE_FORMATS.find((format) => format.label === document.documentMeta?.dateFormat)
+ DATE_FORMATS.find((format) => format.value === document.documentMeta?.dateFormat)
?.value ?? DEFAULT_DOCUMENT_DATE_FORMAT,
redirectUrl: document.documentMeta?.redirectUrl ?? '',
},