set discount calculate issue when wpml

Resolve discount calculation issue with WPML integration.

add_filter('advanced_woo_discount_rules_calculate_current_discount_amount', function($current_discount_amount, $price_discount){

    if(!empty($price_discount['discount_rule_type']) && $price_discount['discount_rule_type'] == 'set_discount'){
        return  $price_discount['discount_value'];
    }
    return $current_discount_amount;

}, 10, 2);