From 2208a1132fa17208c45b13d7784581b66ae04a7c Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Fri, 11 Apr 2025 06:42:34 -0700 Subject: [PATCH] fix(nostr): fixing linting rule --- src/components/app-body/sweep/index.js | 36 ++++++++++++-------------- src/services/nostr.js | 1 + 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/src/components/app-body/sweep/index.js b/src/components/app-body/sweep/index.js index d0e3a13..8384ac5 100644 --- a/src/components/app-body/sweep/index.js +++ b/src/components/app-body/sweep/index.js @@ -104,7 +104,7 @@ const SweepWif = (props) => { const handleCancelCounterOffers = async () => { try { - console.log(`Executing handleCancelCounterOffers()`) + console.log('Executing handleCancelCounterOffers()') // Set modal initial state // setShowModal(true) @@ -119,8 +119,6 @@ const SweepWif = (props) => { // Sweep the private key holding the Counter Offer UTXOs. setWifToSweep(wif) - - await handleSweep() } catch (err) { @@ -211,23 +209,23 @@ const SweepWif = (props) => {
- -

- When a Buy order is created, the coins (UTXO) to pay for it are - moved to a secondary address. Clicking the button below will - sweep those funds back into this main wallet. This will also - cancel/invalidate all open Counter Offers that you've created. -

- -
+ +

+ When a Buy order is created, the coins (UTXO) to pay for it are + moved to a secondary address. Clicking the button below will + sweep those funds back into this main wallet. This will also + cancel/invalidate all open Counter Offers that you've created. +

+ + - - - - - + + + + + {showModal && getModal()} diff --git a/src/services/nostr.js b/src/services/nostr.js index ed44763..bc4098e 100644 --- a/src/services/nostr.js +++ b/src/services/nostr.js @@ -83,6 +83,7 @@ class NostrBrowser { // Connect to a relay. const relay = await Relay.connect(relayWs, { + /* global WebSocket */ webSocket: WebSocket }) // console.log(`connected to ${relay.url}`)