@@ -300,7 +300,7 @@ export function OrderBook({ pairId, pair, onOrderClick }: OrderBookProps) {
300300 < div className = "grid grid-cols-3 gap-2 px-4 py-2 text-xs text-gray-500 border-b border-surface-border/50" >
301301 < div className = "flex items-center gap-1" >
302302 Price ({ pair . quote } )
303- { orderBook . strkUsdRate > 0 && (
303+ { ( orderBook . strkUsdRate ?? 0 ) > 0 && (
304304 < span className = "text-emerald-500/70 flex items-center" >
305305 < DollarSign className = "w-3 h-3" />
306306 </ span >
@@ -367,9 +367,9 @@ export function OrderBook({ pairId, pair, onOrderClick }: OrderBookProps) {
367367 < div className = "text-right" >
368368 < span className = "text-gray-500 text-xs" > Spread</ span >
369369 < div className = "text-white font-mono" > { orderBook . spread } </ div >
370- { orderBook . strkUsdRate > 0 && (
370+ { ( orderBook . strkUsdRate ?? 0 ) > 0 && (
371371 < div className = "text-xs text-gray-600" >
372- STRK = ${ orderBook . strkUsdRate . toFixed ( 3 ) }
372+ STRK = ${ orderBook . strkUsdRate ! . toFixed ( 3 ) }
373373 </ div >
374374 ) }
375375 </ div >
@@ -406,7 +406,7 @@ export function OrderBook({ pairId, pair, onOrderClick }: OrderBookProps) {
406406
407407 { /* Full depth indicator with USD info */ }
408408 < div className = "px-4 py-3 text-center text-xs text-gray-600 border-t border-surface-border/30" >
409- { orderBook . strkUsdRate > 0 ? (
409+ { ( orderBook . strkUsdRate ?? 0 ) > 0 ? (
410410 < span > On-chain orderbook • USD prices via Pragma Oracle</ span >
411411 ) : (
412412 < span > Full orderbook depth from on-chain</ span >
0 commit comments