Skip to content

Commit c3a9c48

Browse files
authored
Merge pull request #352 from blocknative/fix/ledger-transport-disconnect
Fix: Ledger Transport Disconnect
2 parents 107b921 + 8213a95 commit c3a9c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/select/wallets/ledger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async function ledgerProvider(options: {
138138
let eth: any
139139

140140
function disconnect() {
141-
transport.close()
141+
transport && transport.close()
142142
dPath = ''
143143
addressToPath = new Map()
144144
enabled = false

0 commit comments

Comments
 (0)