Skip to content

Commit

Permalink
Merge pull request #19 from paritytech/feat/mobile-crypto-login
Browse files Browse the repository at this point in the history
Fix: blank screen on settings
  • Loading branch information
piggydoughnut committed Mar 14, 2024
2 parents ceb3e3c + c7b3ecd commit 6408f3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/modules/users/client/components/MySettings.tsx
Expand Up @@ -66,6 +66,11 @@ export const MySettings: React.FC = () => {
if (me) {
const addresses: Array<string[]> = []
const linked: Record<string, AuthAddressPair[]> = {}
if (!me.authIds || !me.authIds['polkadot']) {
setLinkedAccounts({})
setLinkedAddresses([])
return
}
Object.entries(me.authIds['polkadot']).forEach(
([walletName, authAddressPairs]) => {
linked[formatName(walletName)] = authAddressPairs
Expand Down
4 changes: 2 additions & 2 deletions src/server/auth/providers/google/helper.ts
Expand Up @@ -62,8 +62,8 @@ export const linkPolkadotAccountToExistingUser = async (
}

await user
.addAuthId(AuthProvider.Polkadot, account.meta.source, {
name: account.meta.name,
.addAuthId(AuthProvider.Polkadot, account.source, {
name: account.name,
address: account.address,
})
.save()
Expand Down

0 comments on commit 6408f3d

Please sign in to comment.