fix(web): align PriceChangePct keys with API (d1/d7/d30)

API's market-snapshot returns priceChangePct with keys d1/d7/d30 but the
FE interface and KpiStrip accessor used day1/day7/day30, causing a
TypeError crash on the home page for authenticated users. Rename the
FE type, update KpiStrip accessors, and fix the landing test fixture.

Fixes TEC-3091.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-21 12:41:30 +07:00
parent ceab711dc6
commit 846ea652d8
3 changed files with 6 additions and 6 deletions

View File

@@ -139,9 +139,9 @@ export interface ProjectAiAdvice {
/* ------------------------------------------------------------------ */
export interface PriceChangePct {
day1: number;
day7: number;
day30: number;
d1: number;
d7: number;
d30: number;
}
export interface MarketSnapshotResponse {