Skip to content

Commit

Permalink
Disable submit button for wrong organisationGID
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Oct 10, 2024
1 parent 3c95bce commit b954454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/pages/RoleForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export const RoleForm = () => {

const renderForm = () => {
const valid = isValid();
const disabledSubmit = !valid && !initial;
const disabledSubmit = (!valid && !initial) || !validOrganizationGUID;
const filteredProviders = providers.filter(option => !applications.some(app => app && option.value === app.value));
return (<>
<h2 className="section-separator">
Expand Down

0 comments on commit b954454

Please sign in to comment.