From: Chris Duncan Date: Sat, 27 Jun 2026 05:38:08 +0000 (-0700) Subject: Fix Ledger status reporting. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=d8c8599653633a1ce9e65ad9ee880faea34698ad;p=libnemo.git Fix Ledger status reporting. --- diff --git a/src/lib/ledger/index.ts b/src/lib/ledger/index.ts index cda83f7..c7f80a3 100644 --- a/src/lib/ledger/index.ts +++ b/src/lib/ledger/index.ts @@ -98,7 +98,6 @@ export class Ledger { this.#transport ??= TransportUSB return false } - this.status = 'UNSUPPORTED' return true } @@ -108,7 +107,7 @@ export class Ledger { * UNSUPPORTED | DISCONNECTED | BUSY | LOCKED | CONNECTED */ static get status (): LedgerStatus { - return this.#status + return this.isUnsupported ? 'UNSUPPORTED' : this.#status } /**