Property 'find' does not exist on type 'HttpEvent'.
logIn(signInForm: FormGroup) {
console.log('Login', signInForm);
this._http.get<any>('http://localhost:3000/signUpData', this.signInForm.value).subscribe(result => {
if (this.id === undefined) { return }
this._toast.success(this.signUpData, 'Registered Successfully!');
const userData = result.find((loginData: any) => {
return loginData.email === this.signInForm.email && loginData.password === this.signInForm.password
});
if (this.signUpData) {
alert('Login Successfully!')
this.router.navigate(['dashboard']);
} else {
alert('User not found!')
}
})
}