diff --git a/changes/issue-11932-improve-abm-400-error b/changes/issue-11932-improve-abm-400-error
new file mode 100644
index 0000000000..3d6fc2a0cb
--- /dev/null
+++ b/changes/issue-11932-improve-abm-400-error
@@ -0,0 +1 @@
+- add improved ABM 400 error message to the UI
diff --git a/frontend/components/DataError/DataError.tsx b/frontend/components/DataError/DataError.tsx
index 66bcb2a63f..8bea008893 100644
--- a/frontend/components/DataError/DataError.tsx
+++ b/frontend/components/DataError/DataError.tsx
@@ -7,7 +7,7 @@ import Icon from "components/Icon";
const baseClass = "data-error";
interface IDataErrorProps {
- children?: JSX.Element | string;
+ children?: React.ReactNode;
card?: boolean;
className?: string;
}
diff --git a/frontend/pages/admin/IntegrationsPage/cards/AutomaticEnrollment/components/AppleBusinessManagerSection/AppleBusinessManagerSection.tsx b/frontend/pages/admin/IntegrationsPage/cards/AutomaticEnrollment/components/AppleBusinessManagerSection/AppleBusinessManagerSection.tsx
index 9a8bef65d5..27803db824 100644
--- a/frontend/pages/admin/IntegrationsPage/cards/AutomaticEnrollment/components/AppleBusinessManagerSection/AppleBusinessManagerSection.tsx
+++ b/frontend/pages/admin/IntegrationsPage/cards/AutomaticEnrollment/components/AppleBusinessManagerSection/AppleBusinessManagerSection.tsx
@@ -103,6 +103,27 @@ const AppleBusinessManagerSection = () => {
};
const renderAppleBMInfo = () => {
+ // we want to give a more useful error message for 400s.
+ if (errorMdmAppleBm && errorMdmAppleBm.status === 400) {
+ return (
+