diff --git a/front/src/components/cocktails/Cocktail.js b/front/src/components/cocktails/Cocktail.js index 796d4b4..3adca70 100644 --- a/front/src/components/cocktails/Cocktail.js +++ b/front/src/components/cocktails/Cocktail.js @@ -63,7 +63,7 @@ export function Cocktail({row, handleFavourite, handleChangeRating, handleSelect alt={row.name} height="300" - image={`${row.image}/preview`} + image={row.image.startsWith("/assets") ? row.image : (row.image + "/preview")} /> {renderFavouriteBadge(handleFavourite, row)} {renderRating(handleChangeRating, row)}