Skip to content

Commit

Permalink
clicking on level 1 opens the introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster authored Sep 21, 2023
1 parent f70aab2 commit c50517b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/world_tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function LevelIcon({ world, level, position, completed, unlocked, worldSi
s * position.y - Math.cos(level * betaSpiral(level)) * (R + 2*r*(level-1)/(NMAX+1))

return (
<Link to={levelDisabled ? '' : `/${gameId}/world/${world}/level/${level}`}
<Link to={levelDisabled ? '' : `/${gameId}/world/${world}/level/${level == 1 ? 0 : level}`}
className={`level${levelDisabled ? ' disabled' : ''}`}>
<circle fill={completed ? lightgreen : unlocked? blue : lightgrey} cx={x} cy={y} r={r} />
<foreignObject className="level-title-wrapper" x={x} y={y}
Expand Down

0 comments on commit c50517b

Please sign in to comment.