diff --git a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/totals/discount/index.tsx b/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/totals/discount/index.tsx index 972708fcfcb..bcf886113a8 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/totals/discount/index.tsx +++ b/plugins/woocommerce-blocks/assets/js/base/components/cart-checkout/totals/discount/index.tsx @@ -49,7 +49,13 @@ const TotalsDiscount = ( { } = values; const discountValue = parseInt( totalDiscount, 10 ); - if ( ! discountValue && cartCoupons.length === 0 ) { + const filteredCartCoupons = applyCheckoutFilter( { + arg: filteredCartCouponsFilterArg, + filterName: 'coupons', + defaultValue: cartCoupons, + } ); + + if ( ! discountValue && filteredCartCoupons.length === 0 ) { return null; } @@ -61,12 +67,6 @@ const TotalsDiscount = ( { ? discountValue + discountTaxValue : discountValue; - const filteredCartCoupons = applyCheckoutFilter( { - arg: filteredCartCouponsFilterArg, - filterName: 'coupons', - defaultValue: cartCoupons, - } ); - return (