From c47719b1b5aaa66ad1be8cb312122b4d70287da9 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 30 Nov 2024 21:30:45 -0800 Subject: [PATCH] Fix wrong variable being returned from worker. --- src/lib/workers/ckdBip44.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/workers/ckdBip44.ts b/src/lib/workers/ckdBip44.ts index bb7f380..99a8ed8 100644 --- a/src/lib/workers/ckdBip44.ts +++ b/src/lib/workers/ckdBip44.ts @@ -18,7 +18,7 @@ const Bip44Ckd = () => { addEventListener('message', (message) => { const data = JSON.parse(new TextDecoder().decode(message.data ?? message)) process(data).then(results => { - const buf = new TextEncoder().encode(JSON.stringify(data)).buffer + const buf = new TextEncoder().encode(JSON.stringify(results)).buffer //@ts-expect-error postMessage(buf, [buf]) }) -- 2.34.1