Skip to content

Commit

Permalink
Update contact.page.js
Browse files Browse the repository at this point in the history
  • Loading branch information
eashaw committed Sep 18, 2024
1 parent 7785aa1 commit c930854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/assets/js/pages/contact.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ parasails.registerPage('contact', {
if(this.formToShow === 'contact'){
this.formToDisplay = this.formToShow;
} else if(!this.primaryBuyingSituation){
// Default to contact form for users who have no primaryBuyingSituation set.
this.formToDisplay = 'contact';
// Otherwise, default to the formToShow value from the page's controller.
this.formToDisplay = this.formToShow;
}
if(this.primaryBuyingSituation){ // If the user has a priamry buying situation set in their sesssion, pre-fill the form.
// Note: this will be overriden if the user is logged in and has a primaryBuyingSituation set in the database.
Expand Down

0 comments on commit c930854

Please sign in to comment.