fix: fix wasmDone logic error
This commit is contained in:
parent
0c320f992b
commit
68fec66069
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue