Skip to content

Commit

Permalink
Moved event name to a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-c-dfe committed Nov 21, 2024
1 parent 961a203 commit a65c7ad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ $("#dropdown-question-form").on("submit", function(){
let question = $("#question").text();
let selectedAO = $("#awarding-organisation-select :selected").val();
let isNotOnTheListChecked = $("#awarding-organisation-not-in-list").is(":checked");
const eventName = 'dropdownQuestionFormSubmission';

let payload = isNotOnTheListChecked ?
{
'event': 'dropdownQuestionFormSubmission',
'event': eventName,
'question': question,
'isNotOnTheListChecked': isNotOnTheListChecked
}
:
{
'event': 'dropdownQuestionFormSubmission',
'event': eventName,
'question': question,
'selectedAwardingOrganisation': selectedAO
};
Expand Down

0 comments on commit a65c7ad

Please sign in to comment.