Hezekiah is the recipient of a personal miracle, but he makes a major mistake. It must have been pride on his part to show off all his stuff. His response seems strange; he is seemingly happy to hear his descendants will be defeated.
Elijah responded to a major victory with fear; Hezekiah responds with pride. How do you respond when God gives victory? Ideally, it is with humility and thankfulness.