diff --git a/src/views/QuickActionBvcBeginView.vue b/src/views/QuickActionBvcBeginView.vue index 596b1ca5..74bd49af 100644 --- a/src/views/QuickActionBvcBeginView.vue +++ b/src/views/QuickActionBvcBeginView.vue @@ -144,7 +144,7 @@ export default class QuickActionBvcBeginView extends Vue { "HUR", BVC_MEETUPS_PROJECT_CLAIM_ID, ); - if (timeResult.type === "success") { + if (timeResult.success) { timeSuccess = true; } else { logger.error("Error sending time:", timeResult); @@ -154,7 +154,7 @@ export default class QuickActionBvcBeginView extends Vue { type: "danger", title: "Error", text: - timeResult?.error?.userMessage || + timeResult?.error || "There was an error sending the time.", }, 5000, @@ -171,7 +171,7 @@ export default class QuickActionBvcBeginView extends Vue { apiServer, axios, ); - if (attendResult.type === "success") { + if (attendResult.success) { attendedSuccess = true; } else { logger.error("Error sending attendance:", attendResult); @@ -181,7 +181,7 @@ export default class QuickActionBvcBeginView extends Vue { type: "danger", title: "Error", text: - attendResult?.error?.userMessage || + attendResult?.error || "There was an error sending the attendance.", }, 5000,