diff --git a/src/pages/duas/[slug].tsx b/src/pages/duas/[slug].tsx index 660f756..a7e5c26 100644 --- a/src/pages/duas/[slug].tsx +++ b/src/pages/duas/[slug].tsx @@ -281,9 +281,8 @@ console.log(data);
{duaParts .filter( - (item, index, self) => - // Check if the current item's id is not already in the array - self.findIndex((i) => i.id === item.id) === index + (item, index, self) =>( + self.findIndex((i) => i.id === item.id) === index && (item.text !== null && item.local_alpha !== null && item.translation !== null)) ) .map((item, index) => (