I have this if-statement:
checkFields() {
if(
this.customerId != null &&
this.dealerName != null &&
this.organizationNumber != null &&
this.numberOfUsers != null
) {
this.buttonStatus = false;
} else {
this.buttonStatus = true;
}
}
To me this basically says:
If all fields are filled, then enable the button (disabled = false)
But even if just one field is filled, the statement sets the buttonstatus
to false.
Am I missing something?
All the best
EDIT
Nothing wrong with the above code, I had a typo in another class (of course)