Skip to content

Commit

Permalink
Add the rendering of validation errors to TaxRate
Browse files Browse the repository at this point in the history
  • Loading branch information
eason9487 committed Jul 20, 2023
1 parent 6d389a1 commit 865e941
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ import VerticalGapLayout from '.~/components/vertical-gap-layout';
*/

const TaxRate = () => {
const { getInputProps } = useAdaptiveFormContext();
const {
getInputProps,
adapter: { renderRequestedValidation },
} = useAdaptiveFormContext();

return (
<Section
Expand Down Expand Up @@ -95,6 +98,7 @@ const TaxRate = () => {
</RadioHelperText>
</AppRadioContentControl>
</VerticalGapLayout>
{ renderRequestedValidation( 'tax_rate' ) }
</Section.Card.Body>
</Section.Card>
</Section>
Expand Down

0 comments on commit 865e941

Please sign in to comment.