handle error when cache is down

This commit is contained in:
tjs 2022-11-30 12:57:57 -05:00
parent 59e0ace464
commit b680d4bb90
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ const MarketDetails = () => {
</Tooltip>
</div>
<div className="text-th-fgd-1 md:text-xs">
{`${market?.funding1h.toFixed(4)}% (${(
{`${market?.funding1h?.toFixed(4)}% (${(
market?.funding1h *
24 *
365
@ -129,7 +129,7 @@ const MarketDetails = () => {
<div className="flex items-center text-th-fgd-1 md:text-xs">
{usdFormatter(market?.openInterestUsd, 0)}
<Tooltip
content={`${market?.openInterest.toLocaleString(
content={`${market?.openInterest?.toLocaleString(
undefined,
{
maximumFractionDigits: