fix: fix wasmDone logic error

This commit is contained in:
Derrick Hammer 2023-06-24 04:10:39 -04:00
parent 0c320f992b
commit 68fec66069
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -74,9 +74,9 @@ export async function getVerifiableStream(
const result = getWasmProperty(wasmId, "result"); const result = getWasmProperty(wasmId, "result");
const wasmDone = result === undefined; const wasmDone = result !== undefined;
if (result === undefined) { if (!wasmDone) {
await getNextBytes(); await getNextBytes();
} }