How to enter previous home office deduction when house is sold

I sold my house in 2024. We are well under the $500,000 joint allowance for capital gains. My wife  in prior years had claimed home office deductions. We stopped using home office in 2019. Do I need to report these prior deductions, and if so, what TT version do I need.