You can do it either way. If you deduct it from your 2018 income, then you're done and don't have to deal with it on the 2019 return. If you leave the income on the 2018 return, then for the 2019 return you report the refund in the "returns and allowances" section.