File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,14 @@ import { ContractCallSignature } from './signature';
55import { FnName } from './function-name' ;
66
77const ErrorAlert = ( { callError } : { callError : ContractCall | FunctionCall | undefined } ) => {
8- const errorDescription = callError ?. errorMessage ;
8+ const errorDescription = callError ?. errorMessage ?. replaceAll ( '\u0000' , '' ) ;
99 return (
1010 < Alert variant = "compact" className = "w-fit my-2 border-red-600 dark:text-white" >
1111 < ExclamationTriangleIcon className = "h-5 w-5 !text-red-600" color = "red" />
1212 < AlertTitle className = "!font-light" > Error message: </ AlertTitle >
1313 < AlertDescription >
14- < span className = "text-red-600" > { errorDescription } </ span > in{ ' ' }
14+ < span className = "text-red-600" > { errorDescription } </ span >
15+ { ' ' } in{ ' ' }
1516 { callError && 'classHash' in callError ? (
1617 < ContractCallSignature contractCall = { callError } />
1718 ) : (
You can’t perform that action at this time.
0 commit comments