diff --git a/frontend/src/lib/components/reporting/ReportingDateRangeSelector.svelte b/frontend/src/lib/components/reporting/ReportingDateRangeSelector.svelte index 07cd9ae3b00..6a49035d97b 100644 --- a/frontend/src/lib/components/reporting/ReportingDateRangeSelector.svelte +++ b/frontend/src/lib/components/reporting/ReportingDateRangeSelector.svelte @@ -2,7 +2,7 @@ import { i18n } from "$lib/stores/i18n"; import type { ReportingPeriod } from "$lib/types/reporting"; - let period: ReportingPeriod = "all"; + export let period: ReportingPeriod = "all"; const options: Array<{ value: ReportingPeriod; diff --git a/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte b/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte index 84a1a98d967..f281802c5ca 100644 --- a/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte +++ b/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte @@ -8,7 +8,6 @@ CsvGenerationError, FileSystemAccessError, generateCsvFileToSave, - periodToDateRangeTimestampts, type CsvHeader, type TransactionsCsvData, } from "$lib/utils/reporting.utils"; @@ -124,7 +123,7 @@ label: $i18n.reporting.timestamp, }, ]; - const fileName = `icp_transactions_export_${formatDateCompact(new Date())}`; + const fileName = `icp_transactions_export_${period}_${formatDateCompact(new Date())}`; await generateCsvFileToSave({ datasets,