fix(recipes): correct effort map casing to match backend values
effortMap had 'Easy'/'Medium'/'Hard' but the API returns 'easy'/'medium'/'hard', so filtering by difficulty always returned nothing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
let activeFilter = $state('Alle');
|
||||
|
||||
const effortMap: Record<string, string> = {
|
||||
Leicht: 'Easy',
|
||||
Mittel: 'Medium',
|
||||
Schwer: 'Hard'
|
||||
Leicht: 'easy',
|
||||
Mittel: 'medium',
|
||||
Schwer: 'hard'
|
||||
};
|
||||
|
||||
let filteredRecipes = $derived(
|
||||
|
||||
Reference in New Issue
Block a user