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 {
});
}
onValueChange(currentValue: number, id: number) {
if (currentValue === 1) {
onValueChange(currentValue: string, id: number) {
if (currentValue === "1") {
this.setOff(id);
} else {
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