Skip to content

Commit

Permalink
add group max text
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtennant committed Jun 20, 2024
1 parent 55b0a40 commit 934953e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion frontend/src/app/content/display/Provisions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Provisions: FC<ProvisionsProps> = ({ dtid, documentType, provisionGroups }

return (
<>
<div>
<div style={{ display: 'flex', alignItems: 'center' }}>
<label htmlFor="provisionGroupSelect" style={{ marginRight: '10px' }}>
Select A Group
</label>
Expand All @@ -81,6 +81,13 @@ const Provisions: FC<ProvisionsProps> = ({ dtid, documentType, provisionGroups }
</option>
))}
</select>
<div style={{ marginLeft: '10px' }}>
{selectedProvisionGroupMax
? selectedProvisionGroupMax > 100
? 'There is no max for this group.'
: `Max for this group is ${selectedProvisionGroupMax}`
: ''}
</div>
</div>
<ProvisionsTable
provisions={provisions}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/app/content/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ const LandingPage: FC = () => {
} else {
setGenerateError(errorMessage);
setShowGenerateError(true);
// alert(errorMessage);
}
}
} catch (err) {
Expand Down

0 comments on commit 934953e

Please sign in to comment.