We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad6c83 commit ca977ffCopy full SHA for ca977ff
src/routes/art/[artist]/[slug]/+page.ts
@@ -7,7 +7,7 @@ export const load: PageLoad = async ({ fetch, params: { artist: artistName, slug
7
const artists: Awaited<ReturnType<typeof getArtists>> = await fetch('/api/art').then((res) => res.json());
8
9
// Find the artist
10
- const artist = Object.entries(artists).find(([artist]) => artist === artistName)?.[1];
+ const artist = Object.entries(artists).find(([artist]) => artist.toLowerCase() === artistName.toLowerCase())?.[1];
11
if (!artist) throw error(404, 'Artist not found');
12
13
// Find the commission
0 commit comments