diff --git a/packages/scaffold/src/partials/w3m-connecting-wc-qrcode/index.ts b/packages/scaffold/src/partials/w3m-connecting-wc-qrcode/index.ts index e825ce01f8..b0c21cd343 100644 --- a/packages/scaffold/src/partials/w3m-connecting-wc-qrcode/index.ts +++ b/packages/scaffold/src/partials/w3m-connecting-wc-qrcode/index.ts @@ -35,11 +35,7 @@ export class W3mConnectingWcQrcode extends W3mConnectingWidget { Scan this QR Code with your phone - - - - Copy link - + ${this.copyTemplate()} @@ -65,7 +61,7 @@ export class W3mConnectingWcQrcode extends W3mConnectingWidget { ConnectionController.setWcLinking(undefined) ConnectionController.setRecentWallet(this.wallet) - return html`` } + private copyTemplate() { + if (!this.uri || !this.ready) { + return null + } + + return html` + + Copy link + ` + } + private forceUpdate = () => { this.requestUpdate() }