Skip to content

Commit

Permalink
fix: valet_inviter opt chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Feb 22, 2024
1 parent 81c61ed commit 212947d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Checkout/PostPurchase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
window.location = route.fullPath;
} else {
const transactionId = numeral(route.query.kiva_transaction_id).value();
const valetInviter = route.query.valet_inviter ?? '';
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

0 comments on commit 212947d

Please sign in to comment.