WARNING: This page is about a different car, the 2020 Hyundai Kona. However, it is still accessible from the selected car via links, so may be relevant.
Check for continuity between terminals. If the continuity is not as specified, replace the hazard lamp switch.