|
|
@ -428,9 +428,18 @@ export default class HomeView extends Vue { |
|
|
|
this.allMyDids, |
|
|
|
this.allContacts, |
|
|
|
); |
|
|
|
const gaveAmount = claim.object?.amountOfThisGood |
|
|
|
let gaveAmount = claim.object?.amountOfThisGood |
|
|
|
? this.displayAmount(claim.object.unitCode, claim.object.amountOfThisGood) |
|
|
|
: claim.description || "something without description"; |
|
|
|
: ""; |
|
|
|
if (claim.description) { |
|
|
|
if (gaveAmount) { |
|
|
|
gaveAmount = gaveAmount + ", and also: "; |
|
|
|
} |
|
|
|
gaveAmount = gaveAmount + claim.description; |
|
|
|
} |
|
|
|
if (!gaveAmount) { |
|
|
|
gaveAmount = "something not described"; |
|
|
|
} |
|
|
|
// recipient.did is for legacy data, before March 2023 |
|
|
|
const gaveRecipientId = |
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
|
|
@ -581,7 +590,7 @@ export default class HomeView extends Vue { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param result direct response from the server (potentially with embedded "data") |
|
|
|
* @param result direct response eg. ErrorResult or SuccessResult (potentially with embedded "data") |
|
|
|
* @returns best guess at an error message |
|
|
|
*/ |
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
|
|
@ -589,7 +598,7 @@ export default class HomeView extends Vue { |
|
|
|
return ( |
|
|
|
result.error?.userMessage || |
|
|
|
result.error?.error || |
|
|
|
result.data?.error?.message |
|
|
|
result.response?.data?.error?.message |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|