Skip to content

Commit

Permalink
feat(cc-sdk): resolved-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adhmenon committed Nov 27, 2024
1 parent 2df33e7 commit e66bcde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@webex/plugin-cc/src/cc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export default class ContactCenter extends WebexPlugin implements IContactCenter
await this.setAgentState(stateChangeData);
}

await this.handleDeviceType(deviceType, dn);
await this.handleDeviceType(deviceType as LoginOption, dn);
this.agentConfig.isAgentLoggedIn = true;
} catch (error) {
const {reason, error: detailedError} = getErrorDetails(error, 'silentReLogin', CC_FILE);
Expand All @@ -330,7 +330,7 @@ export default class ContactCenter extends WebexPlugin implements IContactCenter
/**
* Handles the device type specific logic
*/
private async handleDeviceType(deviceType: string, dn: string): Promise<void> {
private async handleDeviceType(deviceType: LoginOption, dn: string): Promise<void> {
switch (deviceType) {
case LoginOption.BROWSER:
await this.webCallingService.registerWebCallingLine();
Expand All @@ -345,6 +345,6 @@ export default class ContactCenter extends WebexPlugin implements IContactCenter
});
throw new Error(`Unsupported device type: ${deviceType}`);
}
this.agentConfig.deviceType = deviceType as LoginOption;
this.agentConfig.deviceType = deviceType;
}
}

0 comments on commit e66bcde

Please sign in to comment.