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:
@@ -99,7 +99,7 @@ const Tool: FC = () => {
|
|||||||
const cached = localStorage.getItem(RATES_CACHE_KEY);
|
const cached = localStorage.getItem(RATES_CACHE_KEY);
|
||||||
if (cached) {
|
if (cached) {
|
||||||
try {
|
try {
|
||||||
const { rates: cachedRates, date: cachedDate, fetchedAt } = JSON.parse(cached);
|
const { rates: cachedRates, fetchedAt } = JSON.parse(cached);
|
||||||
|
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
const twelveHoursInMs = 12 * 60 * 60 * 1000;
|
const twelveHoursInMs = 12 * 60 * 60 * 1000;
|
||||||
|
|||||||
Reference in New Issue
Block a user