HSA transaction refunded

There was an unauthorised HSA transaction made in Dec 2022. After dispute, the merchant refunded the transaction in March 2023. May I know how would my distribution/contributions in 2022 and 2023 be impacted?

 

I will still enter the distribution as what I received in my 2022 1099SA? but what about 2023?