From c3c4ddc92e67babe0951fc4eea3911ea7635e47d Mon Sep 17 00:00:00 2001 From: Daniela Brozzoni Date: Wed, 14 Sep 2022 15:24:05 +0200 Subject: [PATCH] Fix the wallet's "stop button" The stop button wouldn't work as it was calling `currentWallet.free()`, which is not defined. Instead, assigning null to currentWallet and let the garbage collector do its thing. --- playground/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/src/index.js b/playground/src/index.js index d0d3642b09..820e13e19c 100644 --- a/playground/src/index.js +++ b/playground/src/index.js @@ -127,7 +127,7 @@ async function startWallet(desc, change_desc) { e.preventDefault(); - currentWallet.free(); + currentWallet = null; start_message.innerHTML = "Wallet instance destroyed"; start_button.disabled = false; -- 2.49.0