Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display toast notification for config request errors in privacy center #1373

Closed
TheAndrewJackson opened this issue Oct 11, 2022 · 0 comments
Closed
Labels
UI Work related to UI

Comments

@TheAndrewJackson
Copy link
Contributor

TheAndrewJackson commented Oct 11, 2022

Currently the privacy center log errors to the console when pulling in the config from the server. It may be helpful to users to also display a more detailed error in a toast in combination with logging the error to the console.

try {
const response = await fetch(`${hostUrl}/id-verification/config`, {
headers: {
"X-Fides-Source": "fidesops-privacy-center",
},
});
const data = await response.json();
setIsVerificationRequired(data.identity_verification_required);
} catch (e) {
// eslint-disable-next-line no-console
console.error(e);

@TheAndrewJackson TheAndrewJackson added the UI Work related to UI label Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI Work related to UI
Projects
None yet
Development

No branches or pull requests

1 participant