Fetched allergens array from the database and checked if the individual recipes contained any of the allergens. If they contained an allergen it was added to a list which is displayed and if there are no allergens then "No allergens" is displayed instead.
Fetched allergens array from the database and checked if the individual recipes contained any of the allergens. If they contained an allergen it was added to a list which is displayed and if there are no allergens then "No allergens" is displayed instead.