clicking on level 1 opens the introduction

pull/116/head
Jon Eugster 1 year ago committed by GitHub
parent f70aab29ed
commit c50517b5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}

Loading…
Cancel
Save