Skip to content

Commit

Permalink
fix: use arrow fn
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Mar 8, 2024
1 parent aef9581 commit 6c5ef96
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/hms-video-store/src/sdk/store/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Store {
return this.config;
}

getPluginUsage(name: string) {
getPluginUsage = (name: string) => {
if (!this.pluginUsage[name]) {
this.pluginUsage[name] = 0;
}
Expand All @@ -67,8 +67,9 @@ class Store {
this.pluginLastAddedAt[name] = 0;
}
return this.pluginUsage[name];
}
updatePluginUsage(event: AnalyticsEvent) {
};

updatePluginUsage = (event: AnalyticsEvent) => {
if (event.name === 'plugin.state.changed') {
const name = event.properties.pluginName;
if (!this.pluginUsage[name]) {
Expand All @@ -83,7 +84,7 @@ class Store {
}
console.log('krisp usage value:', this.pluginUsage[name]);
}
}
};

setSimulcastEnabled(enabled: boolean) {
this.simulcastEnabled = enabled;
Expand Down

0 comments on commit 6c5ef96

Please sign in to comment.