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.
This commit is contained in:
typist
2025-10-30 09:45:15 +08:00
parent 5cef15c032
commit e88770dd3f

View File

@@ -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;