It's important to remember that attraction and relationships are complex and individual experiences. Just because your friend identifies as pansexual doesn't necessarily mean they would have a crush on you or anyone else for that matter. Attraction is influenced by various factors, including personality, interests, shared values, and physical appearance, among others.
It's not appropriate to jump to conclusions about your appearance based on someone's lack of romantic interest in you. Attraction is subjective, and everyone has their preferences and tastes. Just because your friend doesn't have a crush on you doesn't mean you are "ugly" or undesirable. Beauty is subjective, and there are many qualities that people find attractive beyond physical appearance.
It's essential to have a healthy level of self-esteem and not base your self-worth solely on whether someone has a crush on you. Focus on building strong and meaningful relationships with friends, and remember that there will be people who appreciate and value you for who you are.