Skip to content

Commit

Permalink
fix: update base to display field errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffredodd committed Mar 6, 2025
1 parent d14711b commit 5cfb78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Base/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const BaseComponent: FC<BaseComponentInterface> = ({
onEvent(componentEvents.ERROR, err)
}}
>
{error && (
{(error || fieldErrors) && (
<Alert label={t('status.errorEncountered')} variant="error">
{fieldErrors && <ul>{renderErrorList(fieldErrors)}</ul>}
</Alert>
Expand Down

0 comments on commit 5cfb78e

Please sign in to comment.