- {byCategory.slice(0, 8).map((cat, i) => (
+ {folded.map((cat, i) => (
{cat.category_name}
{cat.count} txns
@@ -332,8 +369,8 @@ export default function Analytics() {
@@ -343,28 +380,25 @@ export default function Analytics() {
)}
- {/* Exchange rate history */}
+
+ {/* Tipo de cambio */}
-
- Tipo de Cambio USD/CRC (90 días)
+
+ Tipo de cambio USD/CRC (90 días)
{(ratesQ.data?.length ?? 0) < 2 ? (
-
- Sin historial suficiente
-
+
) : (
-
+
new Date(v).toLocaleDateString('es-CR', {
month: 'short',
@@ -385,19 +419,22 @@ export default function Analytics() {
/>
}
/>
+ } />