diff --git a/components/bento-grid.tsx b/components/bento-grid.tsx index d9f4a19..be37275 100644 --- a/components/bento-grid.tsx +++ b/components/bento-grid.tsx @@ -20,7 +20,7 @@ const itemVariants = { y: 0, transition: { duration: 0.6, - ease: [0.22, 1, 0.36, 1], + ease: [0.22, 1, 0.36, 1] as const, }, }, } diff --git a/components/dashboard/eth-price-ticker.tsx b/components/dashboard/eth-price-ticker.tsx index 0485e58..c24df3a 100644 --- a/components/dashboard/eth-price-ticker.tsx +++ b/components/dashboard/eth-price-ticker.tsx @@ -12,8 +12,8 @@ export function EthPriceTicker() { const loading = ethBalance?.priceLoading ?? false const error = ethBalance?.priceError ?? null - const formatPrice = (value: number | null) => { - if (value === null) return "—" + const formatPrice = (value: number | null | undefined) => { + if (value === null || value === undefined) return "—" return `$${value.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` } @@ -60,14 +60,14 @@ export function EthPriceTicker() { )} - + {lastUpdated && !loading && (
Updated {lastUpdated.toLocaleTimeString()}
)} - +