I am calling a function onClick of a Button to compare the values of different properties in my state. My problem is that once I put these different properties into an if-st