fix: KPIs abre en 7d como Ad Tracker por defecto
Misma ventana inicial (hoy-6…hoy) para que los totales coincidan al abrir ambas pantallas. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -117,7 +117,7 @@ export default function MetricsDashboard({
|
||||
/** Raw ad_daily — period totals/matrix use calendar days (same as Ad Tracker). */
|
||||
dailyRows?: AdDailyRow[];
|
||||
}) {
|
||||
const [range, setRange] = useState<RangeKey>('month');
|
||||
const [range, setRange] = useState<RangeKey>('7d');
|
||||
|
||||
const dayWindow = useMemo(() => resolveKpiDayRange(range), [range]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user