For Successful password update of 204 status code it is catching exception in react fetch, please let me know what to do here

fetch(`${AUTH_CONFIG.apiUrl}/user/changepassword`, requestOptions)
    .then(handleResponse)
    .then(data => {
      NotificationManager.success('Password Updated Successfully!');
    })
    .catch(err => {
      NotificationManager.error(err.responseStatus.message);
    });

error : Unhandled Rejection (TypeError): Cannot read property 'message' of undefined

0 Answers