From c421733dec2d70b92021a1423149e5783bdb71db Mon Sep 17 00:00:00 2001 From: Chris Aprea Date: Tue, 10 May 2022 11:11:07 +1000 Subject: [PATCH] Add @ts-expect-error comment to avoid build error. --- plugins/woocommerce-admin/client/subscriptions/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/woocommerce-admin/client/subscriptions/index.tsx b/plugins/woocommerce-admin/client/subscriptions/index.tsx index 62546885a9f..91a501971cd 100644 --- a/plugins/woocommerce-admin/client/subscriptions/index.tsx +++ b/plugins/woocommerce-admin/client/subscriptions/index.tsx @@ -82,6 +82,7 @@ const NoThanksButton = () => { ); updateOptions( { [ dismissOptionKey ]: 'yes', + // @ts-expect-error updateOptions returns a Promise, but it is not typed in source. } ).then( () => { window.location.href = noThanksUrl; } );