Skip to content

Commit

Permalink
Get the first storage node for o-auth not all of them (#3743)
Browse files Browse the repository at this point in the history
  • Loading branch information
amendelsohn authored Jul 14, 2023
1 parent 84bddc0 commit 6d009ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/pages/oauth-login-page/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ export const formOAuthResponse = async ({
if (account.profile_picture_sizes) {
const storageNode = storageNodeSelector.getNodes(
account.profile_picture_sizes
)
)[0]
const base = `${storageNode}${account.profile_picture_sizes}/`
profilePicture = {
'150x150': `${base}150x150.jpg`,
'480x480': `${base}480x480.jpg`,
'1000x1000': `${base}1000x1000.jpg`
}
} else if (account.profile_picture) {
const storageNode = storageNodeSelector.getNodes(account.profile_picture)
const storageNode = storageNodeSelector.getNodes(account.profile_picture)[0]
const url = `${storageNode}${account.profile_picture}`
profilePicture = {
'150x150': url,
Expand Down

0 comments on commit 6d009ae

Please sign in to comment.