forked from jsnbuchanan/crowd-funder-for-time-pwa
Subject line: Added v-model for input box on seed input.
Also completed recovery from seed. Should be ready to move to Make commitment
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user