From: Chris Duncan Date: Wed, 5 Aug 2026 08:44:02 +0000 (-0700) Subject: Make TypeScript happy. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=30b93882129df1ea40bdcae30159c3470bfb2057;p=libnemo.git Make TypeScript happy. --- diff --git a/src/lib/vault/vault-worker.ts b/src/lib/vault/vault-worker.ts index ee475fa..9e89179 100644 --- a/src/lib/vault/vault-worker.ts +++ b/src/lib/vault/vault-worker.ts @@ -220,8 +220,8 @@ function load (type?: WalletType, id?: UUID, key?: CryptoKey, keySalt?: ArrayBuf } function lock (): Promise> { - new Uint8Array(_mnemonic).fill(0) - new Uint8Array(_seed).fill(0) + new Uint8Array(_mnemonic ?? []).fill(0) + new Uint8Array(_seed ?? []).fill(0) _mnemonic = undefined _seed = undefined _locked = true