Skip to content

Commit

Permalink
fix: incorrect value in <select> element. (#894)
Browse files Browse the repository at this point in the history
Fix incorrect value in <select> element.

Co-authored-by: 15363205631 <[email protected]>
  • Loading branch information
vhtmui and 15363205631 authored Nov 29, 2024
1 parent 1b686b8 commit 8aa34c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// TODO this really sucks, why is `exercise.slug` not the slug?
let actual_slug = $derived.by(() => {
const parts = exercise.slug.split('/');
return `${parts[1]}/${parts[3]}`;
return `${parts[1].includes('kit') ? 'kit' : 'svelte'}/${parts[3]}`;
});
</script>

Expand Down

0 comments on commit 8aa34c1

Please sign in to comment.