Skip to content

Commit

Permalink
Merge pull request #47 from cyclese96/development
Browse files Browse the repository at this point in the history
Fix vol24 load in first time
  • Loading branch information
AamirAlam committed Nov 11, 2021
2 parents a68a686 + 04b49c7 commit fd4d9ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/pages/Analytics/Analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const Analytics = () => {
<p className={classes.cardP}>
{"$" +
formatCurrency(
!globalData ? "0" : globalData.oneDayVolumeUSD
!globalData ? "0" : isNaN(globalData.oneDayVolumeUSD) ? globalData.totalVolumeUSD : globalData.oneDayVolumeUSD
)}
</p>
<p
Expand Down Expand Up @@ -143,7 +143,7 @@ const Analytics = () => {
<span className={classes.statLabel}>Volume 24H:</span>
<div className="d-flex align-items-center justify-content-end">
<span className={classes.statAmount}>
${formatCurrency(globalData.oneDayVolumeUSD)}
${formatCurrency(isNaN(globalData.oneDayVolumeUSD) ? globalData.totalVolumeUSD : globalData.oneDayVolumeUSD)}
</span>

<PercentLabel
Expand All @@ -159,7 +159,7 @@ const Analytics = () => {
</div>
<div className="d-flex align-items-center justify-content-end">
<div className={classes.statAmount}>
${formatCurrency(globalData.oneDayVolumeUSD * 0.02)}
${formatCurrency((isNaN(globalData.oneDayVolumeUSD) ? globalData.totalVolumeUSD : globalData.oneDayVolumeUSD) * 0.02)}
</div>

<div>
Expand Down

0 comments on commit fd4d9ef

Please sign in to comment.