From 8e931b5dcd5a1aaf8614f6bad7b8622bb959dea4 Mon Sep 17 00:00:00 2001 From: talksik Date: Tue, 10 May 2022 10:15:47 -0500 Subject: [PATCH] better messaging around actions done --- packages/desktop/src/controller/lineDataProvider.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/desktop/src/controller/lineDataProvider.tsx b/packages/desktop/src/controller/lineDataProvider.tsx index 052ec0d..a6e1ec7 100644 --- a/packages/desktop/src/controller/lineDataProvider.tsx +++ b/packages/desktop/src/controller/lineDataProvider.tsx @@ -202,9 +202,12 @@ function useSocketHandler(linesData: MasterLineData[]) { console.error( "SOCKET | there was a problem with your app...connection closed likely due to idling or manual disconnect" ); - toast( - "Disconnected due to idling or some other issue. Please reconnect or refresh to fix the problem." - ); + // todo: figure out the right thing based on the situation whether it's a problem or user unplugs + // toast( + // "Disconnected due to idling or some other issue. Please reconnect or refresh to fix the problem." + // ); + + toast("unplugging"); setDesktopMode("flowState"); });