Only set errors in edd_is_discount_active() if doing ajax