Skip to content

Commit

Permalink
Add catch statement to address eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
viown committed Oct 2, 2024
1 parent 6a49869 commit 309e5e9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/ConnectionRequired.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,15 @@ const ConnectionRequired: FunctionComponent<ConnectionRequiredProps> = ({
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]);

Expand Down

0 comments on commit 309e5e9

Please sign in to comment.