This commit is contained in:
Eknoor Singh 2025-01-15 14:35:02 +05:30
parent 1affdf6274
commit 9849e54e88

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 };