diff --git a/blocks/commerce-checkout/commerce-checkout.js b/blocks/commerce-checkout/commerce-checkout.js index 31af61652..a20ba410e 100644 --- a/blocks/commerce-checkout/commerce-checkout.js +++ b/blocks/commerce-checkout/commerce-checkout.js @@ -390,11 +390,7 @@ export default async function decorate(block) { handlePlaceOrder: async ({ cartId }) => { await displayOverlaySpinner(); - orderApi.placeOrder(cartId) - .catch(console.error) - .finally(() => { - removeOverlaySpinner(); - }); + await orderApi.placeOrder(cartId).finally(removeOverlaySpinner); }, })($placeOrder), ]);