Skip to content

Commit

Permalink
tooltip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Feb 7, 2024
1 parent 6104b3e commit 8b225cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const Map = () => {
getFillColor: [isReady, currentColumnSpec?.column],
},
onHover: (info: any) => {
if (info?.x && info?.y) {
if (info?.x && info?.y && info?.object) {
dispatch(setTooltipInfo({ x: info.x, y: info.y, id: info.object?.properties?.GEOID }))
} else {
dispatch(setTooltipInfo(null))
Expand Down

0 comments on commit 8b225cb

Please sign in to comment.