Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

145
Vistas
TypeError no capturado: no se pueden leer las propiedades de undefined (leyendo 'entonces')

obtener un error de propiedad indefinida en this.props.firebase.doSendEmailVerification() por lo tanto (.then) no está definido, ¿alguien puede ayudarme a solucionar este error? el código tiene que volver a enviar la verificación por correo electrónico si el usuario no puede registrarse durante el primer correo de verificación.

 import React from 'react'; import AuthUserContext from './context'; import { withFirebase } from '../Firebase'; const needsEmailVerification = authUser => authUser && !authUser.emailVerified && authUser.providerData .map(provider => provider.providerId) .includes('password'); const withEmailVerification = Component => { class WithEmailVerification extends React.Component { constructor(props) { super(props); this.state = { isSent: false }; } onSendEmailVerification = () => { this.props.firebase .doSendEmailVerification() .then(() => this.setState({ isSent: true })); }; render() { return ( <AuthUserContext.Consumer> {authUser => needsEmailVerification(authUser) ? ( <div> {this.state.isSent ? ( <p> E-Mail confirmation sent: Check your E-Mails (Spam folder included) for a confirmation E-Mail. Refresh this page once you confirmed your E-Mail. </p> ) : ( <p> Verify your E-Mail: Check your E-Mails (Spam folder included) for a confirmation E-Mail or send another confirmation E-Mail. </p> )} <button type="button" onClick={this.onSendEmailVerification} disabled={this.state.isSent} > Send confirmation E-Mail </button> </div> ) : ( <Component {...this.props} /> ) } </AuthUserContext.Consumer> ); } } return withFirebase(WithEmailVerification); }; export default withEmailVerification;

ingrese la descripción de la imagen aquí

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda