Track icon bug for tracks without an icon

I’m sure this has been reported before, but:

The “Your recent tracks” in the “learn” dropdown menu shows a broken image for Odin (which does not yet have a track icon) – that image is

<img class="w-[48px] h-[48px] mr-16" src="https://assets.exercism.org/tracks/odin.svg">

The “Your Tracks” icon is

<img alt="Odin" class="c-track-icon  --odin" onerror="if (this.src != 'https://assets.exercism.org/assets/graphics/missing-track-e3d861058d4702c1dc4036617689249659b8d37d.svg') this.src = 'https://assets.exercism.org/assets/graphics/missing-track-e3d861058d4702c1dc4036617689249659b8d37d.svg';" src="https://assets.exercism.org/assets/graphics/missing-track-e3d861058d4702c1dc4036617689249659b8d37d.svg">

Looks like tracks.html.haml needs to provide an onerror: value like the track_icon method

2 Likes

On an exercise page like Solve Line Up on Exercism, the image for Odin is similarly broken. We probably want to show the Your Tracks icon here as well.

1 Like