File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/lib/seam/components/CreateAccessCodeForm Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -145,15 +145,15 @@ function useSubmitCreateAccessCode(params: {
145145
146146export function useResponseErrors ( ) : {
147147 responseErrors : ResponseErrors | null
148- handleResponseError : ( error : SeamHttpApiError ) => void
148+ handleResponseError : ( error : SeamHttpApiError | Error ) => void
149149 resetResponseErrors : ( ) => void
150150} {
151151 const [ responseErrors , setResponseErrors ] = useState < Record <
152152 string ,
153153 string | undefined
154154 > | null > ( null )
155155
156- const handleResponseError = ( error : SeamHttpApiError ) : void => {
156+ const handleResponseError = ( error : SeamHttpApiError | Error ) : void => {
157157 if ( isSeamHttpInvalidInputError ( error ) ) {
158158 const errors = shake ( {
159159 code : error . getValidationErrorMessages ( 'code' ) [ 0 ] ,
You can’t perform that action at this time.
0 commit comments