Fixed CI Inconsistencies

This commit is contained in:
Christopher Allford 2023-12-09 12:30:25 -08:00
parent 6c8207541a
commit 02828cc5d4
2 changed files with 8 additions and 3 deletions

View File

@ -165,7 +165,8 @@ export const SaveHub = () => {
resetHighlightedBlockIndex();
navigator.goToParent();
} catch ( error ) {
// @ts-expect-error The types for this are wrong.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore The types for this are incorrect.
createErrorNotice(
`${ __( 'Saving failed.', 'woocommerce' ) } ${ error }`
);
@ -180,7 +181,8 @@ export const SaveHub = () => {
await save();
sendEvent( 'FINISH_CUSTOMIZATION' );
} catch ( error ) {
// @ts-expect-error The types for this are wrong.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore The types for this are incorrect.
createErrorNotice(
`${ __( 'Saving failed.', 'woocommerce' ) } ${ error }`
);

View File

@ -128,9 +128,12 @@ const useLogoEdit = ( {
onSelectLogo( media );
};
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore The types for this are incorrect.
const { createErrorNotice } = useDispatch( noticesStore );
const onUploadError = ( message: string ) => {
// @ts-expect-error The types for this are wrong.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore The types for this are incorrect.
createErrorNotice( message, { type: 'snackbar' } );
};