增强页头概率页入口并优化概率标签

This commit is contained in:
2569718930@qq.com
2026-04-22 02:59:12 +08:00
parent 00eed52545
commit 1765f383e4
7 changed files with 491 additions and 10 deletions
@@ -1164,12 +1164,12 @@ export function ProbabilityDistribution({
const probability = Math.round(Number(row.probability || 0) * 100);
const rowMarketBucket = row.marketBucket;
const rowMarketPrice =
rowMarketBucket?.market_price ?? rowMarketBucket?.yes_buy ?? null;
rowMarketBucket?.yes_buy ?? rowMarketBucket?.market_price ?? null;
const yesPriceText = toPriceCents(rowMarketPrice);
const marketTagFinal = rowMarketBucket
? locale === "en-US"
? `Market ref: ${yesPriceText || "--"}`
: `市场参考: ${yesPriceText || "--"}`
? `YES ask: ${yesPriceText || "--"}`
: `YES 买价: ${yesPriceText || "--"}`
: null;
return (