fix incorrect checks for success
This commit is contained in:
@@ -144,7 +144,7 @@ export default class QuickActionBvcBeginView extends Vue {
|
|||||||
"HUR",
|
"HUR",
|
||||||
BVC_MEETUPS_PROJECT_CLAIM_ID,
|
BVC_MEETUPS_PROJECT_CLAIM_ID,
|
||||||
);
|
);
|
||||||
if (timeResult.type === "success") {
|
if (timeResult.success) {
|
||||||
timeSuccess = true;
|
timeSuccess = true;
|
||||||
} else {
|
} else {
|
||||||
logger.error("Error sending time:", timeResult);
|
logger.error("Error sending time:", timeResult);
|
||||||
@@ -154,7 +154,7 @@ export default class QuickActionBvcBeginView extends Vue {
|
|||||||
type: "danger",
|
type: "danger",
|
||||||
title: "Error",
|
title: "Error",
|
||||||
text:
|
text:
|
||||||
timeResult?.error?.userMessage ||
|
timeResult?.error ||
|
||||||
"There was an error sending the time.",
|
"There was an error sending the time.",
|
||||||
},
|
},
|
||||||
5000,
|
5000,
|
||||||
@@ -171,7 +171,7 @@ export default class QuickActionBvcBeginView extends Vue {
|
|||||||
apiServer,
|
apiServer,
|
||||||
axios,
|
axios,
|
||||||
);
|
);
|
||||||
if (attendResult.type === "success") {
|
if (attendResult.success) {
|
||||||
attendedSuccess = true;
|
attendedSuccess = true;
|
||||||
} else {
|
} else {
|
||||||
logger.error("Error sending attendance:", attendResult);
|
logger.error("Error sending attendance:", attendResult);
|
||||||
@@ -181,7 +181,7 @@ export default class QuickActionBvcBeginView extends Vue {
|
|||||||
type: "danger",
|
type: "danger",
|
||||||
title: "Error",
|
title: "Error",
|
||||||
text:
|
text:
|
||||||
attendResult?.error?.userMessage ||
|
attendResult?.error ||
|
||||||
"There was an error sending the attendance.",
|
"There was an error sending the attendance.",
|
||||||
},
|
},
|
||||||
5000,
|
5000,
|
||||||
|
|||||||
Reference in New Issue
Block a user