From 6c5ef960768b125dc434f6680875433c99be4872 Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Fri, 8 Mar 2024 16:34:41 +0530 Subject: [PATCH] fix: use arrow fn --- packages/hms-video-store/src/sdk/store/Store.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/hms-video-store/src/sdk/store/Store.ts b/packages/hms-video-store/src/sdk/store/Store.ts index 13a0de5f07..882bdbcffe 100644 --- a/packages/hms-video-store/src/sdk/store/Store.ts +++ b/packages/hms-video-store/src/sdk/store/Store.ts @@ -58,7 +58,7 @@ class Store { return this.config; } - getPluginUsage(name: string) { + getPluginUsage = (name: string) => { if (!this.pluginUsage[name]) { this.pluginUsage[name] = 0; } @@ -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]) { @@ -83,7 +84,7 @@ class Store { } console.log('krisp usage value:', this.pluginUsage[name]); } - } + }; setSimulcastEnabled(enabled: boolean) { this.simulcastEnabled = enabled;