From 524e7a6f98c0b7337b6966b6481a10f411529e00 Mon Sep 17 00:00:00 2001 From: ribardej Date: Thu, 6 Nov 2025 09:56:16 +0100 Subject: [PATCH] fix(frontend): fixed exchange rates and app name --- 7project/frontend/src/config.ts | 3 +++ 7project/frontend/src/pages/Dashboard.tsx | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/7project/frontend/src/config.ts b/7project/frontend/src/config.ts index ee02637..cbcb540 100644 --- a/7project/frontend/src/config.ts +++ b/7project/frontend/src/config.ts @@ -1,2 +1,5 @@ export const BACKEND_URL: string = import.meta.env.VITE_BACKEND_URL ?? ''; + +export const VITE_UNIRATE_API_KEY: string = + import.meta.env.VITE_UNIRATE_API_KEY ?? 'wYXMiA0bz8AVRHtiS9hbKIr4VP3k5Qff8XnQdKQM45YM3IwFWP6y73r3KMkv1590'; diff --git a/7project/frontend/src/pages/Dashboard.tsx b/7project/frontend/src/pages/Dashboard.tsx index 5bfa8e4..4aa2166 100644 --- a/7project/frontend/src/pages/Dashboard.tsx +++ b/7project/frontend/src/pages/Dashboard.tsx @@ -6,7 +6,7 @@ import BalanceChart from './BalanceChart'; import ManualManagement from './ManualManagement'; import CategoryPieChart from './CategoryPieChart'; import MockBankModal, { type MockGenerationOptions } from './MockBankModal'; -import { BACKEND_URL } from '../config'; +import { BACKEND_URL, VITE_UNIRATE_API_KEY } from '../config'; function formatAmount(n: number) { return new Intl.NumberFormat(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(n); @@ -45,7 +45,7 @@ function CurrencyRates() { setLoading(true); setError(null); - const API_KEY = import.meta.env.VITE_UNIRATE_API_KEY; + const API_KEY = VITE_UNIRATE_API_KEY; // We need to get the CZK rate as well, to use it for conversion const allSymbols = [...TARGET_CURRENCIES, 'CZK'].join(','); @@ -355,7 +355,7 @@ export default function Dashboard({ onLogout }: { onLogout: () => void }) {