Skip to content

Commit

Permalink
fix(fiat-price): convert date from milliseconds into seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
neuodev committed May 30, 2023
1 parent ad765a0 commit bb388fc
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -126,7 +126,8 @@ export default class BaseCoinPriceStore
return null;
}
const lastUpdateTimestamp: number = this.lastUpdateTimestamp;
if (Date.now() - lastUpdateTimestamp > CONFIG.app.coinPriceFreshnessThreshold) {

if (Date.now() / 1_000 - lastUpdateTimestamp > CONFIG.app.coinPriceFreshnessThreshold) {
return null;
}
const normalizedFrom = from === 'TADA' ? 'ADA' : from;
Expand Down

0 comments on commit bb388fc

Please sign in to comment.