From e88770dd3f0ae5965e454581d2b606bcb69720bf Mon Sep 17 00:00:00 2001 From: typist Date: Thu, 30 Oct 2025 09:45:15 +0800 Subject: [PATCH] fix: remove unused date property from cached rates in currency tool - Updated the currency tool to eliminate the unused 'date' property from the cached rates object, streamlining the data structure. --- src/components/tool/currency.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tool/currency.tsx b/src/components/tool/currency.tsx index 9746709..5b720f3 100644 --- a/src/components/tool/currency.tsx +++ b/src/components/tool/currency.tsx @@ -99,7 +99,7 @@ const Tool: FC = () => { const cached = localStorage.getItem(RATES_CACHE_KEY); if (cached) { try { - const { rates: cachedRates, date: cachedDate, fetchedAt } = JSON.parse(cached); + const { rates: cachedRates, fetchedAt } = JSON.parse(cached); const now = Date.now(); const twelveHoursInMs = 12 * 60 * 60 * 1000;