newbie here. I want to show the div with the content only if the 'en' property is different from '...'. this is the console.log of my currentData:
{title: {…}, text: {…}, learnMoreText: {default: "..." en: "..."}}
my jsx looks like this:
currentData.learnMoreText.en !== '...' ? <div>content</div> : ''
I have the error: Property 'en' does not exist on type 'TStringOrLanguagesObject'. Property 'en' does not exist on type 'string'.
TStringOrLanguagesObject = string | TLanguagesObject
I'm struggling to understand...any help is welcome!