Skip to content

Commit

Permalink
fix: reject rather than throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
LukassF committed Feb 26, 2024
1 parent 532d76c commit 3024c96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions sdk/apps/modal-example/src/routes/solanaInitOnConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default function SolanaLazy() {
)

adapter.on('connect', (pk) => {
console.log('connected init')
setPublicKey(pk)
})

Expand Down
3 changes: 2 additions & 1 deletion sdk/packages/selector-polkadot/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@ export class NightlyConnectAdapter
})
.catch(() => {
this._loading = false
throw new Error('Failed to initialize adapter')
reject('Failed to initialize adapter')
return
})
}
// Interval that checks if app has connected
Expand Down

0 comments on commit 3024c96

Please sign in to comment.