]> git.codecow.com Git - libnemo.git/commitdiff
Fix missing parenthesis.
authorChris Duncan <chris@codecow.com>
Wed, 5 Aug 2026 06:37:59 +0000 (23:37 -0700)
committerChris Duncan <chris@codecow.com>
Wed, 5 Aug 2026 06:37:59 +0000 (23:37 -0700)
src/lib/vault/parsers.ts

index 34d497013250c671ac821f18df6219879340170b..17909aabad7b303ff42cf85665eea6c0edc81616 100644 (file)
@@ -41,7 +41,7 @@ export function parseData (action: string, data: Record<string, unknown>) {
 
                // Seed to load
                if (action === 'load') {
-                       if (!('seed' in data) {
+                       if (data.seed == null) {
                                throw new TypeError('Seed required to load wallet')
                        }
                        if (!(data.seed instanceof ArrayBuffer)) {