diff --git a/src/pages/account/account.ts b/src/pages/account/account.ts index acca7c5..ed9acb9 100755 --- a/src/pages/account/account.ts +++ b/src/pages/account/account.ts @@ -37,7 +37,7 @@ declare global { generateRecoveryWords: () => string[]; exportUserData: () => void; updateActionButtons: () => void; - showQRCodeModal: (address: string) => void; + showQRCodeModal: (pairingId: string) => void; } } @@ -221,7 +221,7 @@ class AccountElement extends HTMLElement { window.updateActionButtons = () => this.updateActionButtons(); window.openAvatarPopup = () => this.openAvatarPopup(); window.closeAvatarPopup = () => this.closeAvatarPopup(); - window.showQRCodeModal = (address: string) => this.showQRCodeModal(address); + window.showQRCodeModal = (pairingId: string) => this.showQRCodeModal(pairingId); if (!localStorage.getItem('rows')) { localStorage.setItem('rows', JSON.stringify(defaultRows)); @@ -1594,16 +1594,16 @@ private initializeEventListeners() { } } -private showQRCodeModal(address: string): void { +private showQRCodeModal(pairingId: string): void { const modal = document.createElement('div'); modal.className = 'qr-modal'; modal.innerHTML = `
× - QR Code Large -
${decodeURIComponent(address)}
+
${decodeURIComponent(pairingId)}
`;