Skip to content

Commit 5248e23

Browse files
committed
Update the supported wallet everytime the modal is opened instead of just when the kit instance is created
1 parent ee83516 commit 5248e23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/stellar-wallets-kit.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ export class StellarWalletsKit implements KitActions {
319319
this.modalElement = document.createElement('stellar-wallets-modal') as StellarWalletsModal;
320320
}
321321

322+
const supportedWallets: ISupportedWallet[] = await this.getSupportedWallets();
323+
setAllowedWallets(supportedWallets);
324+
322325
this.modalElement.setAttribute('showModal', '');
323326

324327
if (params.modalTitle) {

0 commit comments

Comments
 (0)