diff --git a/packages/module/src/ErrorBoundary/ErrorBoundary.tsx b/packages/module/src/ErrorBoundary/ErrorBoundary.tsx index e540457b..70788905 100644 --- a/packages/module/src/ErrorBoundary/ErrorBoundary.tsx +++ b/packages/module/src/ErrorBoundary/ErrorBoundary.tsx @@ -66,7 +66,7 @@ class ErrorBoundary extends React.Component { )} } - defaulErrorDescription={this.props.defaultErrorDescription} + defaultErrorDescription={this.props.defaultErrorDescription} /> ); diff --git a/packages/module/src/ErrorState/ErrorState.tsx b/packages/module/src/ErrorState/ErrorState.tsx index 53e116ec..8463b49f 100644 --- a/packages/module/src/ErrorState/ErrorState.tsx +++ b/packages/module/src/ErrorState/ErrorState.tsx @@ -22,13 +22,13 @@ const useStyles = createUseStyles({ export interface ErrorStateProps extends Omit { /** Title of the error. */ errorTitle?: string; - /** A description of the error, if no description is provided then it will be set to the defaulErrorDescription. */ + /** A description of the error, if no description is provided then it will be set to the defaultErrorDescription. */ errorDescription?: React.ReactNode; /** A default description of the error used if no errorDescription is provided. */ - defaulErrorDescription?: React.ReactNode; + defaultErrorDescription?: React.ReactNode; } -const ErrorState: React.FunctionComponent = ({ errorTitle = 'Something went wrong', errorDescription, defaulErrorDescription, ...props }: ErrorStateProps) => { +const ErrorState: React.FunctionComponent = ({ errorTitle = 'Something went wrong', errorDescription, defaultErrorDescription, ...props }: ErrorStateProps) => { const classes = useStyles(); return ( @@ -38,7 +38,7 @@ const ErrorState: React.FunctionComponent = ({ errorTitle = 'So - {errorDescription ? {errorDescription} : defaulErrorDescription} + {errorDescription ? {errorDescription} : defaultErrorDescription} {document.referrer ? (