From a07715b4080e3121f834b1f1426638514ca14142 Mon Sep 17 00:00:00 2001 From: Yusef Habib Fernandez Date: Wed, 18 Dec 2024 13:23:21 +0100 Subject: [PATCH] clean up after rebase --- .../lib/components/reporting/ReportingDateRangeSelector.svelte | 2 +- .../components/reporting/ReportingTransactionsButton.svelte | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/reporting/ReportingDateRangeSelector.svelte b/frontend/src/lib/components/reporting/ReportingDateRangeSelector.svelte index 07cd9ae3b0..6a49035d97 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 84a1a98d96..f281802c5c 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,