I am working with react and I have some data that I want to display according to some conditions. Although the condition is true it seems not to be working.
This is my condition:
<p className="text-gray-800">
{
(attributes?.title.trim() === "hair Services" && attributes?.description,
console.log('attributes',attributes.title),
console.log('condition->',attributes?.title.trim() === "hair Services")
console.log('description->',attributes.description),
)
}
</p>
It shows only empty p: