The switch back is, of course, effected, and as Janice Lester is taken off to be tended in some insane asylum, Kirk delivers the moral: if she'd only been satisfied with her gender, "her life could have been as full as any woman's."
They have to try to figure out how to switch the two back into the correct bodies, not only because it's the right thing to do, but because as long as he inhabits Janice Lester's body, Kirk can't command the Enterprise!
For example, when one model offended Janice she not only threw him out of the house and fired him from the agency, but she took it a step further and threw water in his face and slapped him.
Since the Janice Dickenson Modeling Agency is set within the home that houses all the models, Janice, and her bodyguard, there is always interesting situations for viewers to watch.
If a model displeases Janice, whether by overbooking themselves or making a snide comment, Janice has no qualms about throwing them out of the house and out of the agency.