I am encountering an issue with the following code snippet:
async register(user: User){
try {
const result = await this.afAuth.auth.createUserWithEmailAndPassword(user.email, user.password);
this.userRegister();
}
catch {
this.showAlert();
}
}
After running the command ionic build --release --prod
, the terminal is displaying the error message below:
tslint: C:/Users/Mike/Desktop/GuiaCorretor/src/pages/register/register.ts, line: 39
'result' is declared but its value is never read.
try {
const result = await this.afAuth.auth.createUserWithEmailAndPassword(user.email, user.password);
this.userRegister();