Skip to content

Commit

Permalink
"Shares" in answer sell b/c it looked like sale value before
Browse files Browse the repository at this point in the history
  • Loading branch information
jahooma committed Jul 11, 2024
1 parent 0492bf9 commit c4dffad
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions web/components/answers/answer-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -351,11 +355,13 @@ export function MultiSellPosition(props: {
<>
{position > 1e-7 ? (
<>
<span className="font-bold">{formatMoney(position)}</span> YES
<span className="font-bold">{formatLargeNumber(position)}</span> YES
shares
</>
) : position < -1e-7 ? (
<>
<span className="font-bold">{formatMoney(-position)}</span> NO
<span className="font-bold">{formatLargeNumber(-position)}</span> NO
shares
</>
) : (
<></>
Expand Down

0 comments on commit c4dffad

Please sign in to comment.