diff --git a/packages/components/src/components/SquiggleChart.tsx b/packages/components/src/components/SquiggleChart.tsx index 092a2e2b..1a3c4414 100644 --- a/packages/components/src/components/SquiggleChart.tsx +++ b/packages/components/src/components/SquiggleChart.tsx @@ -32,11 +32,9 @@ function getRange(x: continuousDeclaration) { function getChartSettings( x: continuousDeclaration ): FunctionChartSettings { - console.log("HERE"); - let foo = getRange(x); - console.log("HIHI", foo); - let min = foo.floats ? foo.floats.min : 0; - let max = foo.floats ? foo.floats.max : 10; + let range = getRange(x); + let min = range.floats ? range.floats.min : 0; + let max = range.floats ? range.floats.max : 10; return { start: min, stop: max, @@ -208,6 +206,7 @@ const SquiggleItem: React.FC = ({ /> ))} + ) ); case "arraystring": @@ -229,6 +228,17 @@ const SquiggleItem: React.FC = ({ ); } + case "lambda": + return ( + + ); case "lambdaDeclaration": { switch (expression.value.tag) { case "Continuous": { @@ -244,21 +254,16 @@ const SquiggleItem: React.FC = ({ ); } case "RelativeComparison": { - return <>; + return <>"Relative"; + } + default: { + return <>LambdaDeclaration: Should be unreachable; } } } - case "lambda": - return ( - - ); + default: { + return <>Should be unreachable; + } } };