From 53677e09a4037543686f85fe6f1b5773f7c1ed5b Mon Sep 17 00:00:00 2001 From: huy8856 Date: Fri, 2 Feb 2024 16:50:16 +0700 Subject: [PATCH] Add case color --- src/Components/Content/RecommendENG/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Components/Content/RecommendENG/index.js b/src/Components/Content/RecommendENG/index.js index 64a03f7..7c32698 100644 --- a/src/Components/Content/RecommendENG/index.js +++ b/src/Components/Content/RecommendENG/index.js @@ -111,7 +111,10 @@ function RecommendENG({ recommend, setLoading, title = "RELATIONS" }) { className="line-clamp-2 font-extrabold" style={{ color: - item.coverImage.color || COLORLIST[i] || "#fffc", + item?.coverImage?.color || + item?.color || + COLORLIST[i] || + "#fffc", }} > {item.title.english ||