diff --git a/assets/js/blocks/cart/inner-blocks/proceed-to-checkout-block/block.tsx b/assets/js/blocks/cart/inner-blocks/proceed-to-checkout-block/block.tsx index 8f1a230107f..d0b8b907a8c 100644 --- a/assets/js/blocks/cart/inner-blocks/proceed-to-checkout-block/block.tsx +++ b/assets/js/blocks/cart/inner-blocks/proceed-to-checkout-block/block.tsx @@ -10,6 +10,7 @@ import { usePositionRelativeToViewport } from '@woocommerce/base-hooks'; import { getSetting } from '@woocommerce/settings'; import { useSelect } from '@wordpress/data'; import { CHECKOUT_STORE_KEY } from '@woocommerce/block-data'; +import { isErrorResponse } from '@woocommerce/base-context'; /** * Internal dependencies @@ -57,6 +58,8 @@ const Block = ( { }; }, [] ); + const { dispatchOnProceedToCheckout } = useCartEventsContext(); + const submitContainerContents = (