Skip to content

Commit

Permalink
Update oauth providers key since it was changed in the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
stnguyen90 committed Dec 12, 2023
1 parent 3fd2698 commit 2cf7c6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/stores/oauth-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export type Providers = {

const setProviders = (project: Models.Project): Provider[] => {
return (
project?.providers.map((n) => {
// TODO: Remove @ts-expect-error when SDK is updated
// @ts-expect-error SDK needs to be updated
project?.oAuthProviders.map((n) => {
const p = n as Models.Provider & { key: string };
let docs: Provider['docs'];
let icon: Provider['icon'] = p.key.toLowerCase();
Expand Down

0 comments on commit 2cf7c6a

Please sign in to comment.