How did you manage recovery after knee replacement if your other leg also hurt?

I’m curious how people managed recovery after knee replacement when the other leg was also hurting, especially since it must be difficult to rely on it during rehab and daily activities, how did you handle that?