Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

119
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda