Latest Changes #1

Open
eknoor547 wants to merge 4 commits from assignment-4 into main
Showing only changes of commit 9849e54e88 - Show all commits

View file

@ -14,7 +14,7 @@ export const recipeReducer = (state, action) => {
return { ...state, searchQuery: action?.payload };
case 'SET_FILTER':
return {
...state, filters: { ...state?.filter, [action?.field]: action?.payload },
...state, filters: { ...state?.filters, [action?.field]: action?.payload },
};
case 'SET_SELECTED_RECIPE':
return { ...state, selectedRecipe: action?.payload };