Skip to content

Commit

Permalink
Merge pull request #407 from Loopring/du-innovation
Browse files Browse the repository at this point in the history
ticker bugfix
  • Loading branch information
dyfvicture authored Jul 19, 2018
2 parents 10a0987 + f6a5f7a commit 544b756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/utils/tickerFormatter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let fm = {}
fm.getVolume = (value)=>{
if(!value) return '0.00'
value = Number(value)
if(value>1000){
return value.toFixed(0)
Expand Down
2 changes: 1 addition & 1 deletion src/components/market/components/TickerItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class LooprTicker extends React.Component {
const priceValue = (
<span className="color-white-2">
<Currency />
{(price*ticker.last).toFixed(3)}
{ticker.last ? (price*ticker.last).toFixed(3) : '0.00'}
</span>
)

Expand Down

0 comments on commit 544b756

Please sign in to comment.