Add @ts-expect-error comment to avoid build error.
This commit is contained in:
parent
0601a75e1c
commit
c421733dec
|
@ -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;
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in New Issue