Skip to content

Commit

Permalink
Fix toast appearing after chat is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerkrewson committed Aug 1, 2024
1 parent 7d929e0 commit feb03d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/layout/GameLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ const GameLayout = ({
);

igLogEvent("toastMsg");

// don't include showChat because it changing shouldn't
// cause a toast to appear
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [
enableToasts,
igLogEvent,
lastShownToastDate,
newestMsg,
promptMute,
showChat,
thisPlayer.id,
]);

Expand Down

0 comments on commit feb03d3

Please sign in to comment.