diff --git a/frontend/src/components/JobCard.tsx b/frontend/src/components/JobCard.tsx index 7383eb4..b167f10 100644 --- a/frontend/src/components/JobCard.tsx +++ b/frontend/src/components/JobCard.tsx @@ -137,32 +137,33 @@ const JobCard: React.FC = ({ job, onEdit, onDelete, onUpdateProduc

Quantity: {job.outputQuantity.toLocaleString()} - {job.status !== 'Planned' && job.status !== 'Closed' && ( - - Produced: { - isEditingProduced ? ( - setProducedValue(e.target.value)} - onBlur={handleProducedUpdate} - onKeyDown={handleProducedKeyPress} - className="w-24 h-6 px-2 py-1 inline-block bg-gray-800 border-gray-600 text-white" - min="0" - autoFocus - /> - ) : ( - setIsEditingProduced(true)} - className="cursor-pointer hover:text-blue-400" - title="Click to edit" - > - {(job.produced || 0).toLocaleString()} - - ) - } - - )} + + Produced: { + isEditingProduced && job.status !== 'Closed' ? ( + setProducedValue(e.target.value)} + onBlur={handleProducedUpdate} + onKeyDown={handleProducedKeyPress} + className="w-24 h-6 px-2 py-1 inline-block bg-gray-800 border-gray-600 text-white" + min="0" + autoFocus + /> + ) : ( + job.status !== 'Closed' && setIsEditingProduced(true)} + className={job.status !== 'Closed' ? "cursor-pointer hover:text-blue-400" : undefined} + title={job.status !== 'Closed' ? "Click to edit" : undefined} + > + {(job.produced || 0).toLocaleString()} + + ) + } + + + Sold: {itemsSold.toLocaleString()} +