Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 19:14:42 +00:00
co-authored by renee-png
parent cd2cd06ce8
commit 34bb098ef1
4 changed files with 25 additions and 10 deletions
+3 -1
View File
@@ -544,9 +544,11 @@ export function CollectionDetail({
].join(",")),
].join("\n");
const blob = new Blob([rows], { type: "text/csv" });
const name = promptFilename(`Statement_${ho?.last_name || "homeowner"}`, "csv");
if (!name) return;
const a = document.createElement("a");
a.href = URL.createObjectURL(blob);
a.download = `Statement_${ho?.last_name || "homeowner"}.csv`;
a.download = `${name}.csv`;
a.click();
};