Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
Can't access object contained in other object

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!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!