From 54488f9306295bd78e2ba7d2d60b0b7899b9eb70 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 4 Aug 2026 23:42:13 -0700 Subject: [PATCH] Appease the TypeScript gods. --- src/lib/vault/parsers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/vault/parsers.ts b/src/lib/vault/parsers.ts index 17909aa..26c3d9e 100644 --- a/src/lib/vault/parsers.ts +++ b/src/lib/vault/parsers.ts @@ -119,9 +119,9 @@ export function parseData (action: string, data: Record) { return { seed, mnemonicPhrase, mnemonicSalt, encrypted, index, message, timeout } } catch (err) { - new Uint8Array(seed).fill(0) - new Uint8Array(encrypted).fill(0) - new Uint8Array(message).fill(0) + new Uint8Array(seed ?? 0).fill(0) + new Uint8Array(encrypted ?? 0).fill(0) + new Uint8Array(message ?? 0).fill(0) console.error(err) throw new Error('Failed to extract data', { cause: err }) } -- 2.52.0