diff options
Diffstat (limited to 'frontend/components/prism/PriceVsValueCard.tsx')
| -rw-r--r-- | frontend/components/prism/PriceVsValueCard.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/components/prism/PriceVsValueCard.tsx b/frontend/components/prism/PriceVsValueCard.tsx index cf5a3c7..5d9291c 100644 --- a/frontend/components/prism/PriceVsValueCard.tsx +++ b/frontend/components/prism/PriceVsValueCard.tsx @@ -48,8 +48,8 @@ export function PriceVsValueCard({ overview, valuation, valState }: Props) { : `Trading at ${Math.abs(pct).toFixed(1)}% discount to DCF`; const [leftLabel, rightLabel] = isPremium - ? [`IV ${fmtCurrency(iv)}`, `Price ${fmtCurrency(price)}`] - : [`Price ${fmtCurrency(price)}`, `IV ${fmtCurrency(iv)}`]; + ? [`IV ${fmtCurrency(iv, 2, valuation?.currency ?? overview.currency)}`, `Price ${fmtCurrency(price, 2, overview.currency)}`] + : [`Price ${fmtCurrency(price, 2, overview.currency)}`, `IV ${fmtCurrency(iv, 2, valuation?.currency ?? overview.currency)}`]; return ( <section className="psm-card"> @@ -60,9 +60,9 @@ export function PriceVsValueCard({ overview, valuation, valState }: Props) { </div> </div> <div className="psm-pvv-figures"> - <span className="psm-pvv-current">{fmtCurrency(price)}</span> + <span className="psm-pvv-current">{fmtCurrency(price, 2, overview.currency)}</span> <span className={`psm-pvv-iv ${isPremium ? "negative" : "positive"}`}> - IV {fmtCurrency(iv)} + IV {fmtCurrency(iv, 2, valuation?.currency ?? overview.currency)} </span> </div> <div className="psm-pvv-rail"> |
