diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index 95ac129c7..f40cee40d 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -206,27 +206,24 @@ export default class AccountViewView extends Vue { this.publicHex, this.UPORT_ROOT_DERIVATION_PATH, ] = deriveAddress(this.mnemonic); - //appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... derived keys and address..."})) + const prevIds = previousIdentifiers || []; if (toLowercase) { - const foundEqual = R.find( - (id: IIdentifier) => id.did.split(":")[2] === this.address, - prevIds - ); - if (foundEqual) { - // appStore.dispatch(appSlice.actions.addLog({log: true, msg: "Will create a normal-case version of the DID since a regular version exists."})) - } else { + const foundEqual = + R.find( + (id: IIdentifier) => id.did.split(":")[2] === this.address, + prevIds + ) || false; + if (foundEqual === false) { this.address = this.address.toLowerCase(); } } else { - // They're not trying to convert to lowercase. const foundLower = R.find( (id: IIdentifier) => id.did.split(":")[2] === this.address.toLowerCase(), prevIds ); if (foundLower) { - // appStore.dispatch(appSlice.actions.addLog({log: true, msg: "Will create a lowercase version of the DID since a lowercase version exists."})) this.address = this.address.toLowerCase(); } } diff --git a/src/views/ImportAccountView.vue b/src/views/ImportAccountView.vue index 866c376f1..900c8a94e 100644 --- a/src/views/ImportAccountView.vue +++ b/src/views/ImportAccountView.vue @@ -21,8 +21,9 @@ type="text" placeholder="Seed Phrase" class="block w-full rounded border border-slate-400 mb-4 px-3 py-2" - v-bind="mnemonic" + v-model="mnemonic" /> + {{ mnemonic }}