diff --git a/client/src/backend/containers/users/Edit.js b/client/src/backend/containers/users/Edit.js index 2ab3f33006..c48729b636 100644 --- a/client/src/backend/containers/users/Edit.js +++ b/client/src/backend/containers/users/Edit.js @@ -107,14 +107,14 @@ export class UsersEditContainer extends PureComponent { verifyUser = () => { const t = this.props.t; - const verified = this.user.attributes.admin_verified; + const verified = this.user.attributes.adminVerified; const heading = verified ? t("modals.unverify") : t("modals.verify"); const message = verified ? t("modals.unverify_body") : t("modals.verify_body"); this.props.confirm(heading, message, () => { const adjustedUser = { ...this.user }; - adjustedUser.attributes.admin_verified = !verified; + adjustedUser.attributes.adminVerified = !verified; const call = usersAPI.update(this.user.id, adjustedUser); const options = { notificationScope: "drawer" }; @@ -151,6 +151,13 @@ export class UsersEditContainer extends PureComponent { const user = this.user; const t = this.props.t; + const establishedWarningProps = !user.attributes.established + ? { + instructions: t("records.users.not_established_warning"), + instructionsAreWarning: true + } + : {}; + return (