 However, during a 1–1 draw against Hearts on 23 February 2019, Tansey was booked after making a challenge on Clévid Dikamona and served a two match suspension, in what turns out to be his last appearance of his career.After serving two match ban, he, however, suffered a groin injury that saw him out of action for the rest of the 2018–19 season.In August 2019, Tansey left the club by mutual consent following struggles with injury, having made only eight appearances.