From db25ea793da98c4ed69c0f1224c8be47556adbd4 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Wed, 22 Apr 2026 14:37:01 +0200 Subject: [PATCH] fix: Issues column shows only NW > GW weight errors Co-Authored-By: Claude Sonnet 4.6 --- src/components/PricingView.tsx | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/components/PricingView.tsx b/src/components/PricingView.tsx index e9447a1..76378be 100644 --- a/src/components/PricingView.tsx +++ b/src/components/PricingView.tsx @@ -1244,19 +1244,18 @@ export function PricingView({ data, headers, onSaveRow, onCaptureState, onEdit, ))} - {/* Issues column */} + {/* Issues column (weight only) */} - {unitErrors.length > 0 ? ( -
- {unitErrors.map((err, i) => ( - - {err} - - ))} -
- ) : ( - - )} + {(() => { + const weightError = unitErrors.find(e => e.startsWith('NW')); + return weightError ? ( + + {weightError} + + ) : ( + + ); + })()} {/* Check Column (Validated + Note) */}