From 6919e0a369777035d25534dba34b1ffca64accb4 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Fri, 7 Feb 2025 15:33:38 -0500 Subject: [PATCH] fix: sonar issue with login Signed-off-by: Adam Setch --- src/renderer/routes/Login.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/routes/Login.tsx b/src/renderer/routes/Login.tsx index 489518cba..f20c08ff5 100644 --- a/src/renderer/routes/Login.tsx +++ b/src/renderer/routes/Login.tsx @@ -21,9 +21,9 @@ export const LoginRoute: FC = () => { } }, [isLoggedIn]); - const loginUser = useCallback(() => { + const loginUser = useCallback(async () => { try { - loginWithGitHubApp(); + await loginWithGitHubApp(); } catch (err) { logError('loginWithGitHubApp', 'failed to login with GitHub', err); }