I am seeing this warning show up in several places, but in each places it seems to be incorrect.
Basically, I have a useForm watch
on some variables to keep track of them for error management, such as my variable watchCampaignType
. This keeps track of a radio button form where the user can check SEQ, MID, or NON-SEQ. It is initialized as “” (empty string). When the user clicks the form, some checking is done to see whether or not the user has an error (depending on which you choose, certain conditions must be met depending on the selection).
For some reason, Sonar is saying the “===” is unnecessary (however eslint says otherwise and gives me a warning) and that the statement will always be false which… is just straight up incorrect. Why is this happening and how can I fix this warning?