diff --git a/src/routes/calc/path.tsx b/src/routes/calc/path.tsx index 71ffdf0..dff4dca 100644 --- a/src/routes/calc/path.tsx +++ b/src/routes/calc/path.tsx @@ -73,6 +73,7 @@ function TextPath(props: { path: PathStep[] }) { function PathFinder() { const [start, setStart] = useSessionStorage("start", "E.G1G.6GD"); + const [endType, setEndType] = useSessionStorage("endType", "star") const [end, setEnd] = useSessionStorage("end", "Nod"); const [jump, setJump] = useSessionStorage("jump", 80); const [optimize, setOptimize] = useSessionStorage( @@ -104,7 +105,7 @@ function PathFinder() { - + - +
System 1From system
System 2 + + - setEnd(e.target.value)} - /> + {endType == "star" ? + setEnd(e.target.value)} + /> + : + }