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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user