# Fix minicart strikeout

```php
/**
* When use this snippet disable the "Force refresh the cart widget" option in our settings.
*/
add_action('woocommerce_before_mini_cart', function (){
    if (!WC()->cart->is_empty()){
	global $flycart_woo_discount_rules;
	if(!empty($flycart_woo_discount_rules)){
		if(isset($flycart_woo_discount_rules->discountBase)){
			WC()->cart->get_cart_from_session();
			$flycart_woo_discount_rules->discountBase->handlePriceDiscount();
			WC()->cart->calculate_totals();
		}
	}
    }
});
```
