Ira Deduction - which year

We contributed to my wife's IRA in April 2023. We got the deduction on 2022 taxes. I am listing it on 2023 taxes but it is giving us the deduction on 2023. Is this correct?