clarification needed: my wife and I forgot to enter a 1099-r in 2019

my wife and I forgot to enter a 1099-r in 2019 taxes, IRS sent a letter as we did forget it, and we paid the bill in full.  The error caused our state to go from a $1246 refund to a $1791 amount owed.  The federal was paid in 2021, the state was paid in 2021. mount.  In 2020, the 2019 State tax refund was treated as income, but do to the change, is actually no longer income, but a deduction.  What happens to 2020 FEDERAL, 2020 State,  2021 State and Federal ?  Only as it relates to the increase in taxes owed for 2019 but paid in 2020/2021.