From ef56f8e9b970686512bb01fa8e7447c662e73802 Mon Sep 17 00:00:00 2001 From: Hassan El Mghari Date: Mon, 23 Jan 2023 11:06:13 -0500 Subject: [PATCH] minor update --- pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index.tsx b/pages/index.tsx index aee3ab3e..48811ba6 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -55,8 +55,8 @@ const Home: NextPage = () => { const reader = data.getReader(); const decoder = new TextDecoder(); - let done = false; + while (!done) { const { value, done: doneReading } = await reader.read(); done = doneReading;