Skip to content

Commit

Permalink
fix not redirecting to step 2 after authorize (#2006)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleksal authored Jan 28, 2025
1 parent 22d8efc commit 58c6bb5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions frontend/src/components/Mining/MiningConsentSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,10 @@ function showImapDialog() {
close();
}
function refreshOAuth() {
switch (provider.value) {
case 'google':
case 'azure':
signInWithOAuth(provider.value as OAuthMiningSource);
break;
default:
showImapDialog();
break;
if (provider.value === 'imap') {
showImapDialog();
} else {
addOAuthAccount(provider.value as OAuthMiningSource);
}
}
</script>
Expand Down

0 comments on commit 58c6bb5

Please sign in to comment.