|
@ -530,7 +530,15 @@ export default class ContactsView extends Vue { |
|
|
try { |
|
|
try { |
|
|
const resp = await this.axios.post(url, payload, { headers }); |
|
|
const resp = await this.axios.post(url, payload, { headers }); |
|
|
//console.log("Got resp data:", resp.data); |
|
|
//console.log("Got resp data:", resp.data); |
|
|
if (resp.data?.success?.handleId) { |
|
|
if (resp.data?.success?.embeddedRecordError) { |
|
|
|
|
|
this.alertTitle = "Registration Still Unknown"; |
|
|
|
|
|
let message = "There was some problem with the registration."; |
|
|
|
|
|
if (typeof resp.data.success.embeddedRecordError == "string") { |
|
|
|
|
|
message += " " + resp.data.success.embeddedRecordError; |
|
|
|
|
|
} |
|
|
|
|
|
this.alertMessage = message; |
|
|
|
|
|
this.isAlertVisible = true; |
|
|
|
|
|
} else if (resp.data?.success?.handleId) { |
|
|
contact.registered = true; |
|
|
contact.registered = true; |
|
|
db.contacts.update(contact.did, { registered: true }); |
|
|
db.contacts.update(contact.did, { registered: true }); |
|
|
|
|
|
|
|
|