Skip to content

Commit

Permalink
Remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 committed Aug 26, 2024
1 parent 5c07fa0 commit 0b11efc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/invoice/invoice-table.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ const InvoiceTable: React.FC<InvoiceTableProps> = ({ bill, isSelectable = true,
const tableRows: Array<typeof DataTableRow> = useMemo(
() =>
filteredLineItems?.map((item, index) => {
console.log(`Line Item ${index + 1} - ${item.item}: Status is ${item.paymentStatus}`);

return {
no: `${index + 1}`,
id: `${item.uuid}`,
Expand Down Expand Up @@ -137,10 +135,8 @@ const InvoiceTable: React.FC<InvoiceTableProps> = ({ bill, isSelectable = true,

if (checked) {
newSelectedLineItems = [...selectedLineItems, matchingRow];
console.log(`Selected Line Item: ${matchingRow.item} (UUID: ${matchingRow.uuid})`);
} else {
newSelectedLineItems = selectedLineItems.filter((item) => item.uuid !== row.id);
console.log(`Deselected Line Item: ${matchingRow.item} (UUID: ${matchingRow.uuid})`);
}
setSelectedLineItems(newSelectedLineItems);
onSelectItem(newSelectedLineItems);
Expand Down

0 comments on commit 0b11efc

Please sign in to comment.