diff --git a/waltid-web-wallet/web/src/pages/api/siop/initiateIssuance.vue b/waltid-web-wallet/web/src/pages/api/siop/initiateIssuance.vue index 60c681f67..f613fa784 100644 --- a/waltid-web-wallet/web/src/pages/api/siop/initiateIssuance.vue +++ b/waltid-web-wallet/web/src/pages/api/siop/initiateIssuance.vue @@ -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])) } diff --git a/waltid-web-wallet/web/src/pages/api/siop/initiatePresentation.vue b/waltid-web-wallet/web/src/pages/api/siop/initiatePresentation.vue index 0b8782afc..db3058543 100644 --- a/waltid-web-wallet/web/src/pages/api/siop/initiatePresentation.vue +++ b/waltid-web-wallet/web/src/pages/api/siop/initiatePresentation.vue @@ -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])) }