diff --git a/src/applications/representative-appoint/components/SelectAccreditedRepresentative.jsx b/src/applications/representative-appoint/components/SelectAccreditedRepresentative.jsx index 796ee15b099f..b8c6b04964e0 100644 --- a/src/applications/representative-appoint/components/SelectAccreditedRepresentative.jsx +++ b/src/applications/representative-appoint/components/SelectAccreditedRepresentative.jsx @@ -197,7 +197,7 @@ const SelectAccreditedRepresentative = props => {

diff --git a/src/applications/representative-appoint/config/form.js b/src/applications/representative-appoint/config/form.js index b1be02f7a43b..5635d995f4b8 100644 --- a/src/applications/representative-appoint/config/form.js +++ b/src/applications/representative-appoint/config/form.js @@ -378,7 +378,10 @@ const formConfig = { authorizeOutsideVANames: { path: 'authorize-outside-va/names', depends: formData => { - return isAttorneyOrClaimsAgent(formData); + return ( + isAttorneyOrClaimsAgent(formData) && + formData.authorizeOutsideVARadio === 'Yes' + ); }, title: 'Authorization for Access Outside of VA Systems', uiSchema: authorizeOutsideVANames.uiSchema, diff --git a/src/applications/representative-appoint/containers/IntroductionPage.jsx b/src/applications/representative-appoint/containers/IntroductionPage.jsx index 619610f48921..3e1f1b3e4cf3 100644 --- a/src/applications/representative-appoint/containers/IntroductionPage.jsx +++ b/src/applications/representative-appoint/containers/IntroductionPage.jsx @@ -3,27 +3,24 @@ import PropTypes from 'prop-types'; import { focusElement } from 'platform/utilities/ui'; import FormTitle from 'platform/forms-system/src/js/components/FormTitle'; import SaveInProgressIntro from 'platform/forms/save-in-progress/SaveInProgressIntro'; -// import repStatusLoader from 'applications/static-pages/representative-status'; -import { - // useStore, - connect, -} from 'react-redux'; +import repStatusLoader from 'applications/static-pages/representative-status'; +import { useStore, connect } from 'react-redux'; import { isLoggedIn } from 'platform/user/selectors'; import GetFormHelp from '../components/GetFormHelp'; const IntroductionPage = props => { const { route, loggedIn } = props; const { formConfig, pageList } = route; - // const store = useStore(); + const store = useStore(); useEffect(() => { focusElement('.va-nav-breadcrumbs-list'); }, []); - // // search from query params on page load - // useEffect(() => { - // repStatusLoader(store, 'representative-status', 3, false); - // }, []); + // search from query params on page load + useEffect(() => { + repStatusLoader(store, 'representative-status', 3, false); + }, []); return (
@@ -44,7 +41,7 @@ const IntroductionPage = props => {

<>
- {/*
*/} +