Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickWaweru committed Dec 17, 2024
1 parent ba0113f commit e1ae271
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ type Props = {
};

const TransactionsStockcardPrintout: React.FC<Props> = ({ columns, items, title }) => {
console.warn('ITEMS: ' + JSON.stringify(items, null, 2));

const [mappedData, setMappedData] = useState([]);
const [patientData, setPatientData] = useState({});

Expand Down Expand Up @@ -57,8 +55,6 @@ const TransactionsStockcardPrintout: React.FC<Props> = ({ columns, items, title
fetchPatients();
}, [items]);

console.warn('PATIENTS: ' + JSON.stringify(patientData, null, 2));

useEffect(() => {
// Map items with patient data
const data = items.map((stockItemTransaction) => {
Expand Down Expand Up @@ -131,8 +127,6 @@ const TransactionsStockcardPrintout: React.FC<Props> = ({ columns, items, title
setMappedData(data);
}, [items, patientData]);

console.warn('MAPPED ITEMS: ' + JSON.stringify(mappedData, null, 2));

return (
<div>
<PrintableStockcardTransactionHeader itemName={title} />
Expand Down

0 comments on commit e1ae271

Please sign in to comment.