From 2c7ded941806dfa7da0d4e2255257a5e022efe8f Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Mon, 5 Oct 2020 16:56:59 -0400 Subject: [PATCH] 16947: do not produce snackbar errors in validateSessions() Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- src/store/auth/auth-action-session.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/store/auth/auth-action-session.ts b/src/store/auth/auth-action-session.ts index 0f85e9ac..8fc17810 100644 --- a/src/store/auth/auth-action-session.ts +++ b/src/store/auth/auth-action-session.ts @@ -188,10 +188,11 @@ export const validateSessions = () => places in Workbench2. */ await dispatch(validateSession(session, activeSession)); } catch (e) { - dispatch(snackbarActions.OPEN_SNACKBAR({ - message: e.message, - kind: SnackbarKind.ERROR - })); + // Don't do anything here. User may get + // spammed with multiple messages that are not + // helpful. They can see the individual + // errors by going to site manager and trying + // to toggle the session. } } } -- 2.30.2