I need to search a text in Error Message, I tried to use .find and .contains method on string but it is not working.
Here is the code:
. catch (error => {
console.log( "error message : " + error.find( “already registered” ));
})
Thanks