Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Fix exported file name (#323)
Luke Vella2c6f64bdc3e6
diff --git a/src/components/poll/manage-poll/use-csv-exporter.ts b/src/components/poll/manage-poll/use-csv-exporter.tsindex dab051647..b8344386e 100644--- a/src/components/poll/manage-poll/use-csv-exporter.ts+++ b/src/components/poll/manage-poll/use-csv-exporter.ts@@ -51,7 +51,9 @@ export const useCsvExporter = () => {link.setAttribute("href", encodedCsv);link.setAttribute("download",- `${poll.title.replace(/\s/g, "_")}-${dayjs().format("YYYYMMDDHHmm")}`,+ `${poll.title.replace(/\s/g, "_")}-${dayjs().format(+ "YYYYMMDDHHmm",+ )}.csv`,);document.body.appendChild(link);link.click();