Skip to content

Commit 0f64eb6

Browse files
Ji Kimchdavis0917dwejikimjigarxplindenyoung
authored andcommitted
fix slackoAuth typing error
> > Co-authored-by: Chris Davis <[email protected]> Co-authored-by: Ji Kim <[email protected]> Co-authored-by: Jigar Patel <[email protected]> Co-authored-by: Linden Young <[email protected]>
1 parent 6c30b11 commit 0f64eb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/slack_login/SlackLoginWindow.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,18 @@ const errorMessage = ref("");
9090
const scope = "incoming-webhook";
9191
const redirectUri = process.env.SLACK_REDIRECT_URI;
9292
const clientId = process.env.SLACK_CLIENT_ID;
93-
9493
isAuthenticating.value = true;
9594
95+
if (redirectUri && clientId) {
9696
const trimmedUri = redirectUri.slice(1, redirectUri.length - 1);
9797
const trimmedClientId = clientId.slice(1, clientId.length - 1);
98-
98+
9999
shell.openExternal(
100100
`${slackBaseUrl}?scope=${scope}&redirect_uri=${trimmedUri}&client_id=${trimmedClientId}`,
101101
{ activate: true }
102102
);
103103
}
104+
}
104105
105106
const saveToLocalForage = (key: string, value: string) => {
106107
localforage.setItem(key, value);

0 commit comments

Comments
 (0)