fix crash when coinbase api goes down
This commit is contained in:
parent
b594e11891
commit
31399c7547
|
@ -17,7 +17,7 @@ export default function Price () {
|
||||||
refreshInterval: 30000
|
refreshInterval: 30000
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!data) return null
|
if (!data || !data.data) return null
|
||||||
|
|
||||||
const fixed = (n, f) => Number.parseFloat(n).toFixed(f)
|
const fixed = (n, f) => Number.parseFloat(n).toFixed(f)
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
|
|
Loading…
Reference in New Issue