Skip to content

Commit

Permalink
fix: sse fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jwo0o0 committed Feb 22, 2024
1 parent 81e80ad commit 196fd4b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Drive/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
};
Expand Down

0 comments on commit 196fd4b

Please sign in to comment.