From 196fd4bf18f32a7fb8d4833b16621d7cc813b7e3 Mon Sep 17 00:00:00 2001 From: jwo0o0 Date: Thu, 22 Feb 2024 21:43:25 +0900 Subject: [PATCH] fix: sse fix --- src/components/Drive/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Drive/index.tsx b/src/components/Drive/index.tsx index 394b036..875c657 100644 --- a/src/components/Drive/index.tsx +++ b/src/components/Drive/index.tsx @@ -39,8 +39,10 @@ export const Drive = () => { console.log("sse sucess"); console.log(event.data); const id = event?.data || 0; - setMessage(messages[id]); - setToast(true); + if (id !== 0) { + setMessage(messages[id]); + setToast(true); + } }); } catch {} };