From: Chris Duncan Date: Wed, 5 Aug 2026 06:42:13 +0000 (-0700) Subject: Appease the TypeScript gods. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=54488f9306295bd78e2ba7d2d60b0b7899b9eb70;p=libnemo.git Appease the TypeScript gods. --- 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 }) }