diff --git a/client/src/app/led-presentation/led-presentation.component.ts b/client/src/app/led-presentation/led-presentation.component.ts index c5fec45ff639a7db0dfedb8e014fad1cd24b24d1..99d2fea5f0724b641afdec103b4bc62e165eb882 100644 --- a/client/src/app/led-presentation/led-presentation.component.ts +++ b/client/src/app/led-presentation/led-presentation.component.ts @@ -30,9 +30,9 @@ export class LedPresentationComponent implements OnInit { onValueChange(currentValue: string, id: number) { if (+currentValue === 1) { - this.setOn(id); - } else { this.setOff(id); + } else { + this.setOn(id); } }