Skip to content

Commit

Permalink
fix: use boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlaz committed Oct 11, 2024
1 parent 9770def commit 89afbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/rtc/Publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export class Publisher {
enabledLayers.find((l) => l.name === encoder.rid);

// flip 'active' flag only when necessary
const shouldActivate = layer?.active;
const shouldActivate = !!layer?.active;
if (shouldActivate !== encoder.active) {
encoder.active = shouldActivate;
changed = true;
Expand Down

0 comments on commit 89afbb1

Please sign in to comment.