*Fix valid check

This commit is contained in:
Derrick Hammer 2022-12-18 13:46:00 -05:00
parent 5fba29b3ee
commit a85b20769a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ import { errorExit } from "./error.js";
export function getSeed() {
const seed = config.str("seed");
let err = bip39.validateMnemonic(seed, wordlist);
if (err) {
let valid = bip39.validateMnemonic(seed, wordlist);
if (!valid) {
errorExit("LUME_WEB_RELAY_SEED is invalid. Aborting.");
}