diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index 9c76174b..97d11758 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -756,9 +756,10 @@ function SellButton(props: { export function ProfitBadge(props: { profitPercent: number + round?: boolean className?: string }) { - const { profitPercent, className } = props + const { profitPercent, round, className } = props if (!profitPercent) return null const colors = profitPercent > 0 @@ -773,7 +774,9 @@ export function ProfitBadge(props: { className )} > - {(profitPercent > 0 ? '+' : '') + profitPercent.toFixed(1) + '%'} + {(profitPercent > 0 ? '+' : '') + + profitPercent.toFixed(round ? 0 : 1) + + '%'} ) } diff --git a/web/components/contract/prob-change-table.tsx b/web/components/contract/prob-change-table.tsx index 8a3ed87f..644946c9 100644 --- a/web/components/contract/prob-change-table.tsx +++ b/web/components/contract/prob-change-table.tsx @@ -77,10 +77,10 @@ export function ProbChange(props: { } = contract return (