Can I take a look at the component?
Also, I think you should focus on logging the values of the state every time a component re-renders, instead of relying on the 'Yes' and 'No' output, if you want to catch the error faster and solve for it in the most effective manner.
Everytime, a state/prop changes in the component, you would get a log and you can check if there is a time when the state is being set wrongly or something.
You could also alternatively use a debugger.