Skip to content

Commit

Permalink
Fix payload
Browse files Browse the repository at this point in the history
  • Loading branch information
eganichev committed Jan 6, 2022
1 parent 2c219de commit 05672cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/BarChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const OpiumBarChart: React.FC<Props> = (props: Props) => {
console.log('CustomTooltip active', active)

if (active) {
if (payload && payload[0].customTooltip) {
if (payload && payload[0].payload.customTooltip) {
return (
<div className="custom-tooltip">
{payload[0].customTooltip}
Expand Down

0 comments on commit 05672cc

Please sign in to comment.