Skip to content

Commit

Permalink
Fix conditional rendering in GraphComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
SidharthK2 committed Apr 8, 2024
1 parent 1ebc7be commit af36e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dashboard/GraphComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const GraphComponent = ({
<>
{areaGraph ? (
<ResponsiveContainer width="100%" height={height}>
{areaGraphData !== undefined ? (
{areaGraphData !== undefined && graphCurrentValue ? (
<AreaChart data={areaGraphData}>
<YAxis
dataKey="amt"
Expand Down

0 comments on commit af36e71

Please sign in to comment.