]> git.codecow.com Git - libnemo.git/commitdiff
Appease them differently.
authorChris Duncan <chris@codecow.com>
Wed, 5 Aug 2026 06:43:19 +0000 (23:43 -0700)
committerChris Duncan <chris@codecow.com>
Wed, 5 Aug 2026 06:43:19 +0000 (23:43 -0700)
src/lib/vault/parsers.ts

index 26c3d9e0e1ed3177b17576c1587542b63fa3c897..4b76cc4d437765b072918df4df78078449405096 100644 (file)
@@ -119,9 +119,9 @@ export function parseData (action: string, data: Record<string, unknown>) {
 
                return { seed, mnemonicPhrase, mnemonicSalt, encrypted, index, message, timeout }
        } catch (err) {
-               new Uint8Array(seed ?? 0).fill(0)
-               new Uint8Array(encrypted ?? 0).fill(0)
-               new Uint8Array(message ?? 0).fill(0)
+               new Uint8Array(seed ?? []).fill(0)
+               new Uint8Array(encrypted ?? []).fill(0)
+               new Uint8Array(message ?? []).fill(0)
                console.error(err)
                throw new Error('Failed to extract data', { cause: err })
        }