summaryrefslogtreecommitdiff
path: root/frontend/components/prism/PriceVsValueCard.tsx
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-06-29 01:41:22 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-06-29 01:41:22 -0700
commitdfec7587305fee59f8304000994ca16a495f7389 (patch)
treeb249367a7db0cf1d781f5401fddbd91ec61ba28f /frontend/components/prism/PriceVsValueCard.tsx
parent2525596329ce57d01b012a18b0505b05fa8011d7 (diff)
feat: update financial overview components
Diffstat (limited to 'frontend/components/prism/PriceVsValueCard.tsx')
-rw-r--r--frontend/components/prism/PriceVsValueCard.tsx8
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">