Skip to content
Snippets Groups Projects
Commit 303cf8e8 authored by kasperlauge's avatar kasperlauge
Browse files

Tried to fix stuff

parent eacb1965
No related branches found
No related tags found
1 merge request!1Swagger improvements
......@@ -29,12 +29,10 @@ export class LedPresentationComponent implements OnInit {
}
onValueChange(currentValue: string, id: number) {
console.log(id);
console.log(currentValue);
if (currentValue === "1") {
this.setOff(id);
} else {
if (+currentValue === 1) {
this.setOn(id);
} else {
this.setOff(id);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment