From ada8935fe3156313a4e8c6f9f09783bb125c3231 Mon Sep 17 00:00:00 2001 From: Enes Date: Wed, 20 Dec 2023 12:36:55 +0300 Subject: [PATCH] refactor: update copy link rendering condition (#1592) --- .../scaffold/src/partials/w3m-connecting-wc-qrcode/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 b0c21cd343..8b81e7ba1b 100644 --- a/packages/scaffold/src/partials/w3m-connecting-wc-qrcode/index.ts +++ b/packages/scaffold/src/partials/w3m-connecting-wc-qrcode/index.ts @@ -71,11 +71,9 @@ export class W3mConnectingWcQrcode extends W3mConnectingWidget { } private copyTemplate() { - if (!this.uri || !this.ready) { - return null - } + const inactive = !this.uri || !this.ready - return html` + return html` Copy link `