(WIVB) — A New York State Supreme Court justice ruled primary elections for Congress, and the state Senate will be moved from June to August.

The Steuben County judge decided the Congressional and State Senate elections will be held on August 23. The Court of Appeals threw out the district maps for those elections, calling them unconstitutional.

Special Master Dr. Jonathan Cervas from Carnegie Mellon University is in charge of redrawing those maps by May 20.

It will be up to state lawmakers to decide whether primaries for statewide elections, the Assembly and local races will happen in June or move to August.

View the ruling below:

Patrick Ryan is a digital producer who has been part of the News 4 team since 2020. See more of his work here.