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 Nov 29, 2023
1 parent 7c16440 commit 9d06c50
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
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 9d06c50

Please sign in to comment.