Add @ts-expect-error comment to avoid build error.

This commit is contained in:
Chris Aprea 2022-05-10 11:11:07 +10:00
parent 0601a75e1c
commit c421733dec
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ const NoThanksButton = () => {
); );
updateOptions( { updateOptions( {
[ dismissOptionKey ]: 'yes', [ dismissOptionKey ]: 'yes',
// @ts-expect-error updateOptions returns a Promise, but it is not typed in source.
} ).then( () => { } ).then( () => {
window.location.href = noThanksUrl; window.location.href = noThanksUrl;
} ); } );