NEW HAVEN, Conn. (WTNH) — Jahana Hayes has won reelection in Connecticut’s 5th Congressional District, fending off a challenge from George Logan, a former state senator.

Hayes defeated Logan, a Republican who repeatedly linked her with President Joe Biden and House Speaker Nancy Pelosi and accused her of being tone-deaf about the impact of inflation on voters. The race attracted millions of dollars in outside money, with national Republicans seeing the 5th Congressional District as a key opportunity to crack Democrats’ lock on the state’s congressional delegation.

“National Republicans threw everything at me but the kitchen sink, put millions of dollars in this race,” Hayes told reporters who gathered at her campaign headquarters after the Secretary of the State’s Office announced it had received election results from the Town of Salisbury that had been delayed because of a technical issue.

During a press conference Thursday, Logan said a team of lawyers and election workers had spent the last two days investigating the election.

“Our issues would not yield enough votes to change the outcome of the election,” Logan said. “We have no legal recourse to force a recount. The time has come for this campaign to end.”

Hayes said she was not expecting the margin to be so close and called attack ads on her an attack on her integrity.

“Politics doesn’t have to be like this,” she said.

WATCH: Rep. Jahana Hayes addresses attack ads

The secretary of state’s office released a statement Wednesday, saying that there were technical difficulties with the Town of Salisbury, but that Hayes is above the recount threshold.

“These difficulties were not due to any shortcomings of the local officials but rather a result of recent redistricting changes made to the Election Management System,” a written statement from Andrew Miano, the press secretary for the secretary of state, reads. “However, we are also aware that the results in the 5th Congressional District do not include the vote totals from the Town of Salisbury. As with any election, our office prepares contingencies for these situations and our office collected a paper copy of the Head Moderator’s Return attached hereto. The inclusion of these vote totals brings the margin of victory for Representative Hayes to 1842 votes. This total exceeds any statutory margin of victory that would necessitate a recount. As much, with the inclusion of Salisbury’s vote totals, there is no statutory requirement for a recount in the 5th Congressional District.”

Hayes tweeted Wednesday night that she “did not make any comment while the votes were still being counted in order to maintain the integrity of the process.”

Logan had hoped to become the first Republican to win the 5th Congressional District seat since it was reconfigured following the elimination of the state’s 6th Congressional District in 2003. Connecticut lost a seat following the 2000 Census. With Hayes’ win, Connecticut’s congressional delegation remains all Democrats.

Hayes, a former national teacher of the year, was first elected to office in 2018, becoming the first African American woman to represent Connecticut in Congress. She currently sits on the House of Representatives committees for education, labor, and agriculture.

Logan, the son of immigrants from Guatemala, is a mechanical engineer and community relations director at a water company. He’s also a guitarist in a Jimi Hendrix tribute band. Despite being labeled as too extreme by Democrats, he has portrayed himself as a social moderate and fiscal conservative.

1st Congressional District

Democratic U.S. Rep. John Larson won his 13th term representing the 1st Congressional District, which spans northern and central parts of the state, including Hartford. He was challenged by Dr. Larry Lazor, who describes himself as a moderate Republican. A minor party candidate is also running.

2nd Congressional District

The national GOP also targeted Democratic U.S. Rep. Joe Courtney, who was first elected to Congress in 2006 to represent the 2nd Congressional District in eastern Connecticut. But Courtney, who billed himself as someone with a record of effectively working with Democrats and Republicans, managed to defeat his Republican challenger, state Rep. Mike France, chair of the General Assembly’s conservative caucus.

3rd Congressional District

Democratic U.S. Rep. Rosa DeLauro won her 17th term in office in the 3rd Congressional District, which includes areas of southern and central Connecticut. She was challenged by Republican Lesley DiNardis, a college administrator, and two minor party candidates.

4th Congressional District

In the 4th Congressional District, Himes won an eighth term. He was being challenged by Republican Jayme Stevenson, an abortion rights supporter who served more than a decade as Darien’s first selectman.

The Associated Press contributed to this report.