Skip to content

Commit

Permalink
DCJ-687: Add dynamic warning for users with no institution (#2678)
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Sep 26, 2024
1 parent 8f47c95 commit b589591
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/user_profile/AffiliationAndRoles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ export default function AffiliationAndRole(props) {
}}
>
<p>Institution</p>
{!(profile.institutionId) && <div className={'alert-danger alert'} style={{fontWeight: 'normal'}}>
Please select an existing Institution. If you don&apos;t see your institution listed, please select the Contact
Us link to request that your institution be added.
</div>}
<div style={{ marginTop: '15px' }} />
{generateInstitutionSelectionDisplay()}
{formIsValid() ? (
Expand Down

0 comments on commit b589591

Please sign in to comment.