Skip to content

Commit 97fc430

Browse files
authored
fix: add user-friendly error notification for login failures (#1107)
1 parent 2f99557 commit 97fc430

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/react/src/hooks/useRCAuth.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ export const useRCAuth = () => {
6363
}
6464
}
6565
} catch (e) {
66-
console.error('A error occurred while setting up user', e);
66+
console.error('An error occurred while setting up user', e);
67+
dispatchToastMessage({
68+
type: 'error',
69+
message: 'Unable to connect to server. Please check your connection and try again.',
70+
});
6771
}
6872
};
6973

0 commit comments

Comments
 (0)