van·i·ty

vanity

The salesclerk flattered the customer, hoping to exploit his vanity.She wanted to swim with the others, but her vanity prevented it: she was afraid of ruining her makeup.The young man's vanity kept him from seeing his flaws.