diff --git a/packages/webpage-refactor/components/dynamicSquiggleChart.js b/packages/webpage-refactor/components/dynamicSquiggleChart.js index b865518..3d76ddc 100644 --- a/packages/webpage-refactor/components/dynamicSquiggleChart.js +++ b/packages/webpage-refactor/components/dynamicSquiggleChart.js @@ -24,57 +24,51 @@ const effectButtonStyle = "bg-transparent m-2 hover:bg-blue-500 text-blue-700 font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent rounded mt-5"; export function DynamicSquiggleChart({ link, stopShowing }) { - let usefulLink = { - source: link.source, - target: link.target, - squiggleString: link.squiggleString, - }; - return link == null ? ( - "" - ) : ( - /*{ -
+ if (link == null) { + return ""; + } else { + let usefulLink = { + source: link.source, + target: link.target, + squiggleString: link.squiggleString, + }; + return ( +
+