diff --git a/backend/src/multi-state/state-query-service.ts b/backend/src/multi-state/state-query-service.ts index a48dcf3b..120cce6e 100644 --- a/backend/src/multi-state/state-query-service.ts +++ b/backend/src/multi-state/state-query-service.ts @@ -823,7 +823,13 @@ export class StateQueryService { } const result = await this.pool.query(query, params); - return result.rows; + // Parse numeric values from strings (PostgreSQL returns bigint as string) + return result.rows.map((row: any) => ({ + state: row.state, + stateName: row.stateName, + value: row.value !== null ? parseFloat(row.value) : 0, + label: row.label, + })); } /**