Pennsylvania accrued nearly $3.4 million in legal bills from a total of 24 election cases, some of which involved former President Trump’s failed attempt to overturn the state’s results.

The combination of a litigious defeated president, a new election code and a deadly pandemic created a wave of election litigation that started rolling across Pennsylvania courts last year and didn’t stop until February.