Skip to content

Commit 01db9b1

Browse files
authored
refactor: resolve sonar feedback re login fn (#1823)
fix: sonar issue with login Signed-off-by: Adam Setch <[email protected]>
1 parent b429021 commit 01db9b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/routes/Login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export const LoginRoute: FC = () => {
2121
}
2222
}, [isLoggedIn]);
2323

24-
const loginUser = useCallback(() => {
24+
const loginUser = useCallback(async () => {
2525
try {
26-
loginWithGitHubApp();
26+
await loginWithGitHubApp();
2727
} catch (err) {
2828
logError('loginWithGitHubApp', 'failed to login with GitHub', err);
2929
}

0 commit comments

Comments
 (0)