From 309e5e99900b8aa992501ea44ffc6b76398e2ecd Mon Sep 17 00:00:00 2001 From: viown <48097677+viown@users.noreply.github.com> Date: Wed, 2 Oct 2024 12:01:21 +0300 Subject: [PATCH] Add catch statement to address eslint --- src/components/ConnectionRequired.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/ConnectionRequired.tsx b/src/components/ConnectionRequired.tsx index bd5ca14938f..707f2e80fb0 100644 --- a/src/components/ConnectionRequired.tsx +++ b/src/components/ConnectionRequired.tsx @@ -154,9 +154,15 @@ const ConnectionRequired: FunctionComponent = ({ console.debug('[ConnectionRequired] connection state', firstConnection?.State); if (firstConnection && firstConnection.State !== ConnectionState.SignedIn) { - handleIncompleteWizard(firstConnection); + handleIncompleteWizard(firstConnection) + .catch(err => { + console.error('[ConnectionRequired] could not start wizard', err); + }); } else { - validateUserAccess(); + validateUserAccess() + .catch(err => { + console.error('[ConnectionRequired] could not validate user access', err); + }); } }, [handleIncompleteWizard, validateUserAccess]);