Skip to content

Commit

Permalink
fix: post-purchase was not handing over valet inviter query
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Feb 22, 2024
1 parent a335793 commit 81c61ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/Checkout/PostPurchase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
window.location = route.fullPath;
} else {
const transactionId = numeral(route.query.kiva_transaction_id).value();
const valetInviter = route.query.valet_inviter ?? '';
if (!transactionId) {
// redirect to thanks page if no transaction id was provided
// currently resolves to portfolio via ThanksView getCheckoutId method
Expand Down Expand Up @@ -45,6 +46,10 @@ export default {
query: { kiva_transaction_id: transactionId },
};
if (valetInviter) {
successRoute.query.valet_inviter = valetInviter;
}
// track the transaction event
client.mutate({
mutation: trackTransactionMutation,
Expand Down

0 comments on commit 81c61ed

Please sign in to comment.