mirror of
https://github.com/caty21/forex-dashboard.git
synced 2026-08-24 18:08:07 +00:00
auto: sync 2026-06-02 15:25
This commit is contained in:
@@ -363,13 +363,14 @@ export default function CurrencyCard({ currency, expectations, yields, sentiment
|
|||||||
<Row
|
<Row
|
||||||
label={(() => {
|
label={(() => {
|
||||||
const isQoQ = (inds?.cpiCoreMoM as (Ind & { isQoQ?: boolean }) | null)?.isQoQ;
|
const isQoQ = (inds?.cpiCoreMoM as (Ind & { isQoQ?: boolean }) | null)?.isQoQ;
|
||||||
return isQoQ ? "Core CPI QoQ (=Core Inflation Rate MoM)" : "Core CPI MoM (=Core Inflation Rate MoM)";
|
return isQoQ ? "Core CPI QoQ" : "Core CPI MoM";
|
||||||
})()}
|
})()}
|
||||||
ind={inds?.cpiCoreMoM ?? null}
|
ind={inds?.cpiCoreMoM ?? null}
|
||||||
unit="%"
|
unit="%"
|
||||||
tooltip={(() => {
|
tooltip={(() => {
|
||||||
const raw = (inds?.cpiCoreMoM as (Ind & { _raw?: { last: number; prev: number; refMonth: string } }) | null)?._raw;
|
const raw = (inds?.cpiCoreMoM as (Ind & { _raw?: { last: number; prev: number; refMonth: string } }) | null)?._raw;
|
||||||
return raw ? `Index: last=${raw.last} prev=${raw.prev} ref=${raw.refMonth}` : null;
|
const base = "=Core Inflation Rate MoM";
|
||||||
|
return raw ? `${base} — Index: last=${raw.last} prev=${raw.prev} ref=${raw.refMonth}` : base;
|
||||||
})()}
|
})()}
|
||||||
/>
|
/>
|
||||||
<Row label="Inflation YoY" ind={inds?.cpiYoY ?? null} unit="%" />
|
<Row label="Inflation YoY" ind={inds?.cpiYoY ?? null} unit="%" />
|
||||||
|
|||||||
Reference in New Issue
Block a user