If it drives and steers ok, then I would think that the problem would be the drag link. That's the rod that runs down from the steering box to the passenger side tie rod. Since it was in an accident, I would just replace everything. It's around $80 or so for all the parts in the drag link.
'87 YJ, 4.2L built and bored, 8" of lift, 8.8 rear, AX15/NP 231J, Tom Woods drive shafts, Flat fenders, 12,000LB winch, Custom bumpers, Rattle can paint job. Never completed...