Fix getPairingProcess

This commit is contained in:
NicolasCantu 2025-01-24 11:56:42 +01:00
parent 68c6383502
commit 3f6149abd2

View File

@ -654,9 +654,6 @@ class ChatElement extends HTMLElement {
console.log(`No sp_addresses array found for key "${key}"`); console.log(`No sp_addresses array found for key "${key}"`);
} }
} }
console.log("ADDRESS MAP: ", this.addressMap);
this.addressMap = addressMap;
return this.addressMap; return this.addressMap;
} }
@ -664,14 +661,15 @@ class ChatElement extends HTMLElement {
async getPairingProcess(spAddress: string){ async getPairingProcess(spAddress: string){
const addressMap = await this.getAddressMap(); const addressMap = await this.getAddressMap();
console.log("ADDRESS MAP: ", addressMap);
for [key, value] of Object.entries(addressMap){ for (const [key, value] of Object.entries(this.addressMap)){
if (key == spAddress) { if (key === spAddress) {
const pairingProcess = value; return value;
} }
} }
return this.pairingProcess;
} }
private async toggleMembers(roleData: any, roleElement: HTMLElement) { private async toggleMembers(roleData: any, roleElement: HTMLElement) {