Skip to content
Snippets Groups Projects
Commit 4b59a03b authored by kasperlauge's avatar kasperlauge
Browse files

Fixed number/string conversion error

parent d7a9ff32
No related branches found
No related tags found
1 merge request!1Swagger improvements
...@@ -28,8 +28,8 @@ export class LedPresentationComponent implements OnInit { ...@@ -28,8 +28,8 @@ export class LedPresentationComponent implements OnInit {
}); });
} }
onValueChange(currentValue: number, id: number) { onValueChange(currentValue: string, id: number) {
if (currentValue === 1) { if (currentValue === "1") {
this.setOff(id); this.setOff(id);
} else { } else {
this.setOn(id); this.setOn(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