79710797

Date: 2025-07-22 16:36:41
Score: 1
Natty:
Report link

let _value = key === "HiringPath" ? name : val;
Here, you're assigning the radio button's name (which is likely the same for all options, like "HiringPath") instead of the selected value. This causes unexpected behavior in setState.

let _value = val;

This ensures only the clicked radio button's value is set properly.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sahil Davkhar