Skip to content

Commit

Permalink
Set auto-selected wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
waltkb committed Dec 11, 2023
1 parent 911181f commit cd2e78f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions waltid-web-wallet/web/src/pages/api/siop/initiateIssuance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const wallets = (await listWallets())?.value?.wallets;
const walletUrlFunction = (wallet: WalletListing) => `/wallet/${wallet.id}/exchange/issuance?request=${encodedWalletRequestUrl}`
if (wallets && wallets.length == 1) {
const wallet = wallets[0]
setWallet(wallet.id, undefined)
navigateTo(walletUrlFunction(wallets[0]))
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const wallets = (await listWallets())?.value?.wallets;
const walletUrlFunction = (wallet: WalletListing) => `/wallet/${wallet.id}/exchange/presentation?request=${encodedWalletRequestUrl}`
if (wallets && wallets.length == 1) {
const wallet = wallets[0]
setWallet(wallet.id, undefined)
navigateTo(walletUrlFunction(wallets[0]))
}
</script>

0 comments on commit cd2e78f

Please sign in to comment.