The U.S. Court of Appeals for the Second Circuit on Tuesday upheld a Manhattan federal judge’s decision to reinstate New York’s already-delayed Democratic primary next month.

In a case brought by former presidential contender Andrew Yang, a three-judge panel of the appeals court said it agreed that the move to scrap the June 23 primary amid the COVID-19 pandemic had violated the rights of candidates, their delegates and voters to participate in the election, despite the fact that only one candidate for president would appear on the ballot.