A Republican-controlled county in Pennsylvania violated state law when election workers refused to tell voters whether their mail-in ballot would be counted in April’s primary election, an appeals court ruled Tuesday.

The case is one of several election-related lawsuits being fought in courts in Pennsylvania, a presidential battleground state where November’s contest between Republican Donald Trump and Democrat Kamala Harris could be close.

Through a 2-1 decision, the statewide Commonwealth Court panel upheld a Washington County judge’s month-old order.