Skip to content

Commit

Permalink
use error message
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyEJohnson committed Nov 20, 2024
1 parent 67e677c commit 5d395e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/forms/uncontrolled/inputTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const Checkbox = ({
</CheckboxLine>
<HelpText value={help} />
{error !== undefined && error.length > 0 &&
<StyledErrorMessage>This activity has been deleted. Please deselect this activity to remove it from this assignment and avoid errors.</StyledErrorMessage>
<StyledErrorMessage>{error[0]}</StyledErrorMessage>
}
</FormInputWrapper>;
};
Expand Down

0 comments on commit 5d395e8

Please sign in to comment.