Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

✨ Include email address and year in csv exporter

Luke Vella692068bc5d12
diff --git a/apps/web/src/components/poll/manage-poll/use-csv-exporter.ts b/apps/web/src/components/poll/manage-poll/use-csv-exporter.ts
index 45b75c5a6..db73156db 100644
--- a/apps/web/src/components/poll/manage-poll/use-csv-exporter.ts
+++ b/apps/web/src/components/poll/manage-poll/use-csv-exporter.ts
@@ -14,11 +14,10 @@ export const useCsvExporter = () => {
return {
exportToCsv: () => {
const header = [
- t("participantCount", {
- count: participants.length,
- }),
+ t("name"),
+ t("email"),
...options.map((decodedOption) => {
- const day = `${decodedOption.dow} ${decodedOption.day} ${decodedOption.month}`;
+ const day = `${decodedOption.dow} ${decodedOption.day} ${decodedOption.month} ${decodedOption.year}`;
return decodedOption.type === "date"
? day
: `${day} ${decodedOption.startTime} - ${decodedOption.endTime}`;
@@ -27,6 +26,7 @@ export const useCsvExporter = () => {
const rows = participants.map((participant) => {
return [
participant.name,
+ participant.email,
...poll.options.map((option) => {
const vote = participant.votes.find((vote) => {
return vote.optionId === option.id;