Fixed eng mistakes 2

This commit is contained in:
Stepan 2025-06-30 21:57:10 +02:00
parent 797d9fd334
commit 2caecfe4a4

View File

@ -174,7 +174,7 @@ function ajax_favorites()
return $result; return $result;
} }
else { else {
return get_ajax_error("This recipe in your favorite list is not exists", 400); return get_ajax_error("This recipe from your favorites list does not exist.", 400);
} }
} }
@ -185,6 +185,6 @@ function ajax_favorites()
$favorite->field_recipe_id = $recipe_id; $favorite->field_recipe_id = $recipe_id;
$favorite->save(); $favorite->save();
$result['success'] = 'You have successfully added recipe in your favorite list'; $result['success'] = 'You have successfully added the recipe to your favorites list';
return $result; return $result;
} }