From 31a6a0c4ce2eae0acbec6aa94df0ea0bb5afe1fa Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Sat, 3 Jan 2026 14:23:38 +0100 Subject: [PATCH] 03.01.26 --- src/App.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 114cf69e..b8b702d2 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -251,7 +251,6 @@ export default function App() { const total_p = purchaseData.reduce((sum, item) => sum + Number(item.count), 0); const total_s = saleData.reduce((sum, item) => sum + Number(item.count), 0); const total_sh = shipmentData.reduce((sum, item) => sum + Number(item.count), 0); - const total_l = lotData.reduce((sum, item) => sum + Number(item.count), 0); return (
@@ -433,7 +432,7 @@ export default function App() { Lots
- {total_l} + {lot_al} Across all statuses
@@ -444,7 +443,7 @@ export default function App() { key={i} className={`${item.color} h-3`} style={{ - width: `${(item.count / total_l) * 100}%`, + width: `${(item.count / lot_al) * 100}%`, marginRight: i < lotData.length - 1 ? "2px" : "0", }} > @@ -461,7 +460,7 @@ export default function App() { {item.status} - ({item.count} / {((item.count / total_l) * 100).toFixed(1)}%) + ({item.count} / {((item.count / lot_al) * 100).toFixed(1)}%) ))}