Skip to content

Conversation

@David-Rodriguez-Barrios
Copy link
Member

No description provided.

setVisible(true);
};
function BatteryValid() {
const battery = inputs["battery"];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you try to simplify the if else statement to a single ternary?


function SpeedValid() {
const speed = inputs["speed"];
if (speed !== undefined && speed <= 90 && speed >= 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you try to simplify the if else statement to a single ternary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants