Skip to content

Commit

Permalink
fix(vx-demo/Polygons): type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed May 12, 2020
1 parent bda5e7b commit 3c0a0a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default ({ width, height }: Props) => {
<rect width={width} height={height} fill={backgroundColor} rx={14} />
<GradientPinkRed id="polygon-pink" />
{polygons.map((polygon, i) => (
<Group key={`polygon-${i}`} top={yScale(i) + polygonSize / 2} left={width / 2}>
<Group key={`polygon-${i}`} top={(yScale(i) || 0) + polygonSize / 2} left={width / 2}>
<Polygon
sides={polygon.sides}
size={polygonSize}
Expand Down

0 comments on commit 3c0a0a1

Please sign in to comment.