diff --git a/components/datarooms/add-dataroom-modal.tsx b/components/datarooms/add-dataroom-modal.tsx index ebb4b4143..d2ddbedd4 100644 --- a/components/datarooms/add-dataroom-modal.tsx +++ b/components/datarooms/add-dataroom-modal.tsx @@ -106,7 +106,7 @@ export function AddDataroomModal({ children }: { children?: React.ReactNode }) { id="dataroom-name" placeholder="ACME Aquisition" className="mb-4 mt-1 w-full" - onChange={(e) => setDataroomName(e.target.value)} + onChange={(e) => setDataroomName(e.target.value.trim())} />