My boss told me she has mental health issues (and takes medication) so I told her I have diagnosed anxiety? Did I fuck up?

In retrospect, probably a terrible idea to tell my boss this, I was just trying to show her I understand though. What do you think?

My boss told me she has mental health issues (and takes medication) so I told her I have diagnosed anxiety? Did I fuck up?
Post Opinion