If the shoe fits...
The shoe may or may not fit, but it was still unprofessional behavior. Prejudicial too.