From c4dffad17197200d0ad9fa19e992547193b07237 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 11 Jul 2024 15:12:44 -0700 Subject: [PATCH] "Shares" in answer sell b/c it looked like sale value before --- web/components/answers/answer-components.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/components/answers/answer-components.tsx b/web/components/answers/answer-components.tsx index 534cecfe07..0a06dca003 100644 --- a/web/components/answers/answer-components.tsx +++ b/web/components/answers/answer-components.tsx @@ -9,7 +9,11 @@ import { resolution, tradingAllowed, } from 'common/contract' -import { formatMoney, formatPercent } from 'common/util/format' +import { + formatLargeNumber, + formatMoney, + formatPercent, +} from 'common/util/format' import { ReactNode, useState } from 'react' import { Button } from '../buttons/button' import { Modal, MODAL_CLASS, SCROLLABLE_MODAL_CLASS } from '../layout/modal' @@ -351,11 +355,13 @@ export function MultiSellPosition(props: { <> {position > 1e-7 ? ( <> - {formatMoney(position)} YES + {formatLargeNumber(position)} YES + shares ) : position < -1e-7 ? ( <> - {formatMoney(-position)} NO + {formatLargeNumber(-position)} NO + shares ) : ( <>