Sen. Patrick Joyce

Sen. Patrick Joyce

The Illinois State Senate District 40 race ended in victory for incumbent Sen. Patrick Joyce, a Democrat from Essex, but his Republican opponent Eric Wallace, from Flossmoor, was not far behind in the polls.

With 100 percent of precincts reporting Tuesday evening, Joyce was ahead by a slim margin in Kankakee County, with 20,116 votes (51.17 percent) out of 39,314 total votes. Wallace took in 19,198 votes (48.83 percent) in Kankakee County.

Wallace took the lead in Will and Grundy counties, but Joyce won by a sizable margin in Cook County.