a small fix

This commit is contained in:
MuhammadKhalilzadeh
2024-06-20 18:34:36 +03:30
parent 9940cf9ef5
commit d89e75da15
@@ -1,7 +1,8 @@
import React from "react";
import "./barChart.css";
import PropTypes from "prop-types";
const BarChart = ({ checks }) => {
const BarChart = ({ checks = [] }) => {
return (
<div className="bar-chart">
{checks.map((value, index) => (
@@ -15,4 +16,8 @@ const BarChart = ({ checks }) => {
);
};
BarChart.propTypes = {
checks: PropTypes.array,
};
export default BarChart;