Skip to content

Commit

Permalink
Merge pull request #60 from svrooij/development
Browse files Browse the repository at this point in the history
fix: Mute value from events
  • Loading branch information
svrooij committed Jun 4, 2020
2 parents c012f4c + 80beb53 commit 3a8b42e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/generator/extensions/rendering-control.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export class RenderingControlService extends RenderingControlServiceBase {
if (name === 'Mute') {
const output = {} as ChannelValue<boolean>;
(originalValue as Array<any>).forEach((v) => {
output[v.channel] = v.val === 1;
output[v.channel] = v.val === '1';
});
return output;
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/rendering-control.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export class RenderingControlService extends RenderingControlServiceBase {
if (name === 'Mute') {
const output = {} as ChannelValue<boolean>;
(originalValue as Array<any>).forEach((v) => {
output[v.channel] = v.val === 1;
output[v.channel] = v.val === '1';
});
return output;
}
Expand Down

0 comments on commit 3a8b42e

Please sign in to comment.