fix: use snake_case for error_type (#9835)

This commit is contained in:
Erik Ritter
2020-05-18 12:35:55 -07:00
committed by GitHub
parent 7a95c52d61
commit b36738cf56
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ export default function ErrorMessageWithStackTrace({
// Check if a custom error message component was registered for this message
if (error) {
const ErrorMessageComponent = getErrorMessageComponentRegistry().get(
error.errorType,
error.error_type,
);
if (ErrorMessageComponent) {
return <ErrorMessageComponent error={error} />;