From aecdcd93e1d05b87364045d97d0bf987706057d1 Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Tue, 20 May 2025 17:48:32 +0200 Subject: [PATCH] Fix showQrCodeModal --- src/pages/account/account.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)}
`;