fix crash when coinbase api goes down

This commit is contained in:
keyan 2021-06-17 13:51:55 -05:00
parent b594e11891
commit 31399c7547
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ export default function Price () {
refreshInterval: 30000
})
if (!data) return null
if (!data || !data.data) return null
const fixed = (n, f) => Number.parseFloat(n).toFixed(f)
const handleClick = () => {