+ // If blank entropy, clear mnemonic, addresses, errors
+ if (DOM.entropy.val().trim().length == 0) {
+ clearDisplay();
+ hideEntropyError();
+ DOM.phrase.val("");
+ showValidationError("Blank entropy");
+ return;
+ }
+ // Get the current phrase to detect changes
+ var phrase = DOM.phrase.val();
+ // Set the phrase from the entropy