Skip to content

Commit c4a3e53

Browse files
committed
Remove unnecessary console logs
1 parent 4488906 commit c4a3e53

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

Track 4_ReactJS_Web Development/Project/Frontend/hrc-dashboard/src/components/navigation/AnalyticsButton.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ function AnalyticsButton() {
3232
setPieChartData(preparePieChart({ data: analyticsData }));
3333
setBarChartData(prepareBarChart({ data: analyticsData }));
3434
setModalOpened(true); // Open the modal toggling the state of it.
35-
console.log(pieChartData);
3635
showNotification({
3736
title: 'Alert!',
3837
message: `The analytics data are ready!`,

Track 4_ReactJS_Web Development/Project/Frontend/hrc-dashboard/src/components/navigation/DeleteButton.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ function DeleteButton() {
2929
const handleDelete = async () => {
3030
if (selectedIndices?.length > 0) {
3131
const respData = await deleteRows(selectedIndices);
32-
console.log(respData);
3332
if (respData[0].rowsAffected > 0) {
3433
showNotification({
3534
title: 'Alert!',

Track 4_ReactJS_Web Development/Project/Frontend/hrc-dashboard/src/utils/analytics/prepareBarChart.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,11 @@ const preparePieChart = ({ data }) => {
3535
}
3636
}
3737
*/
38-
const transformedDataArray = Object.keys(transformedData).map((item) => {
39-
console.log(item);
40-
return {
41-
business: item,
42-
'No. of Customers': transformedData[item].no_of_customers,
43-
'Total Open Amount': transformedData[item].total_open_amount,
44-
};
45-
});
46-
console.log(transformedDataArray);
38+
const transformedDataArray = Object.keys(transformedData).map((item) => ({
39+
business: item,
40+
'No. of Customers': transformedData[item].no_of_customers,
41+
'Total Open Amount': transformedData[item].total_open_amount,
42+
}));
4743

4844
return transformedDataArray;
4945
};

Track 4_ReactJS_Web Development/Project/Frontend/hrc-dashboard/src/utils/api/getAnalyticsData.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getAnalyticsData = async (/* payload */) => {
1818
);
1919

2020
if (status === 200) {
21-
console.log('[API /getanalytics] Response: 200 ', data);
21+
console.log('[API /getanalytics] Response: 200 ');
2222
return data;
2323
}
2424
console.log('[API /getanalytics] Response: ', status);

0 commit comments

Comments
 (0)