From 30b93882129df1ea40bdcae30159c3470bfb2057 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 5 Aug 2026 01:44:02 -0700 Subject: [PATCH] Make TypeScript happy. --- src/lib/vault/vault-worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.52.0