From a96cc8155c8cfe4d9066e3f356419e286a46c91c Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 4 Jul 2025 16:58:18 -0600 Subject: [PATCH] fix incorrect checks for success --- src/views/QuickActionBvcBeginView.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,