From f3f87331c8da695f7b78168c5952fd43b126d37b Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Thu, 4 Jan 2018 14:09:10 -0800 Subject: [PATCH] nit --- sim/visuals/nodes/largeMotorView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/visuals/nodes/largeMotorView.ts b/sim/visuals/nodes/largeMotorView.ts index 2077be45..3f18241a 100644 --- a/sim/visuals/nodes/largeMotorView.ts +++ b/sim/visuals/nodes/largeMotorView.ts @@ -17,7 +17,7 @@ namespace pxsim.visuals { if (!motorState) return; const syncedMotor = motorState.getSynchedMotor(); - if ((syncedMotor != undefined || this.syncedMotor != undefined) && syncedMotor != this.syncedMotor) { + if ((syncedMotor || this.syncedMotor) && syncedMotor != this.syncedMotor) { this.syncedMotor = syncedMotor; this.showSyncedLabel(motorState, syncedMotor); }