Skip to content

Commit

Permalink
read only on invalid state
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelpiano committed Feb 13, 2024
1 parent c152c72 commit 669e5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Pages/StatementDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const StatementDetails = () => {

//TODO add logic for isDisabled
// TODO add an extra check for invalid state;
const isDisabled = statement?.state === statementStates.Exported;
const isDisabled = statement?.state === statementStates.Exported || statement?.state === statementStates.Invalid;
return (
<Grid p={6} container>
{loading && (
Expand Down

0 comments on commit 669e5a9

Please sign in to comment.