Bucks County residents get an extra few days to cast ballots thanks to a lawsuit filed by the Republican National Committee and the campaigns of Donald Trump and Dave McCormick.

A Court of Common Pleas judge issued a preliminary injunction on Wednesday. It meant people can cast early ballots through Friday at 5 p.m.

National Republican Chairman Michael Whatley hailed the ruling, posting on X. “We will keep fighting. Go vote! Stay in line!”

Republicans took issue when voters waiting to cast early, in-person ballots were turned away on Tuesday. Videos of long lines and voters being sent home made the rounds on social media, raising concerns about election fairness.

Secretary of State Al Schmidt had urged counties to stay open until 5 p.m. Tuesday and that voters stay in line. “If you’re in line [as the deadline approaches] … counties must give you the opportunity to apply for your mail ballot,” he said.

However, Bucks County didn’t do that. A county spokesperson told CBS Philadelphia they cut the line two hours before the deadline for voters who needed to finish the on-demand ballot process. The process involved filling out applications, waiting for them to be approved, and casting a ballot.

And while the county vowed to accept all mail-in ballot applications until 5 p.m., voters complained county elections workers told them to leave.

County Elections officials blamed limited staff and resources for the decision to stop early voting.

“It is a very cumbersome process. We don’t have limitless resources here. We have a fixed number of staff. We have a fixed budget,” County Commission Board Vice Chair Bob Harvie Jr. (D) told CBS Philadelphia.

County Controller Pamela Van Blunk said Bucks County was given $2.4 million from the state toward elections in 2023 and $1.4 million of that was left for this year.

The county was given another almost $2.4 million in 2024, Van Blunk said.

A judge disagreed with Harvie and extended voting through Friday, much to the delight of the Trump campaign.

“Thank you to the court for making the right decision and for finding that Bucks County violated the Pennsylvania election code and providing the requested relief,” wrote James Blair, Trump 2024 Political Director on X.

Bucks County Elections did not return a request for comment.

Meanwhile, Blair encouraged Republicans to vote early.

“The number one way to combat election interference is to make our victory TOO BIG TO RIG. … We have more supporters, but all MUST VOTE,” he said.

Polls of Pennsylvania voters show a presidential and U.S. Senate race that’s coming down to the wire.

Trump leads Democrat Kamala Harris by almost a point, according to the RealClearPolitics poll average. In the U.S. Senate race, longtime Democrat Sen. Bob Casey Jr. leads Republican Dave McCormick by an average of 2 points.