Skip to content

Commit 58c6bb5

Browse files
authored
fix not redirecting to step 2 after authorize (#2006)
1 parent 22d8efc commit 58c6bb5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

frontend/src/components/Mining/MiningConsentSidebar.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,10 @@ function showImapDialog() {
6363
close();
6464
}
6565
function refreshOAuth() {
66-
switch (provider.value) {
67-
case 'google':
68-
case 'azure':
69-
signInWithOAuth(provider.value as OAuthMiningSource);
70-
break;
71-
default:
72-
showImapDialog();
73-
break;
66+
if (provider.value === 'imap') {
67+
showImapDialog();
68+
} else {
69+
addOAuthAccount(provider.value as OAuthMiningSource);
7470
}
7571
}
7672
</script>

0 commit comments

Comments
 (0)