for BVC: finish submission of confirmations & final give

This commit is contained in:
2024-02-26 19:27:34 -07:00
parent 0b24d7bbd8
commit 2c28913d97
5 changed files with 152 additions and 20 deletions

View File

@@ -125,6 +125,7 @@ export default class QuickActionBvcBeginView extends Vue {
const hoursNum = libsUtil.numberOrZero(this.hoursStr);
const identity = await libsUtil.getIdentity(activeDid);
// first send the claim for time given
let timeSuccess = false;
if (this.gaveTime && hoursNum > 0) {
const timeResult = await createAndSubmitGive(
@@ -156,6 +157,7 @@ export default class QuickActionBvcBeginView extends Vue {
}
}
// now send the claim for attendance
let attendedSuccess = false;
if (this.attended) {
const attendResult = await createAndSubmitClaim(
@@ -208,7 +210,7 @@ export default class QuickActionBvcBeginView extends Vue {
group: "alert",
type: "danger",
title: "Error",
text: error.userMessage || "There was an error sending those claims.",
text: error.userMessage || "There was an error sending claims.",
},
-1,
);