mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-04 15:39:35 -05:00
a small fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user