From bd1ea4a82beac1b69f5f5950c0d49a56d381e097 Mon Sep 17 00:00:00 2001 From: Christian Bedon Date: Thu, 11 Jan 2024 11:49:32 -0500 Subject: [PATCH] test: ensure teams are loaded on Checkout Page to get forceTeamId --- src/components/Checkout/BasketItem.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Checkout/BasketItem.vue b/src/components/Checkout/BasketItem.vue index e02b724773..082e31c063 100644 --- a/src/components/Checkout/BasketItem.vue +++ b/src/components/Checkout/BasketItem.vue @@ -191,6 +191,11 @@ export default { return this.loan.team ? this.loan.team.id : 0; } }, + watch: { + teams() { + this.forceTeamId = getForcedTeamId(this.cookieStore, this.loan.id, this.combinedTeams, this.appendedTeams); + } + }, methods: { onLoanUpdate($event) { this.$emit('refreshtotals', $event); @@ -206,8 +211,5 @@ export default { this.$emit('validateprecheckout'); } }, - mounted() { - this.forceTeamId = getForcedTeamId(this.cookieStore, this.loan.id, this.combinedTeams, this.appendedTeams); - } };