Skip to content
Snippets Groups Projects
Commit 5bd7f39c authored by Jamie McClelland's avatar Jamie McClelland
Browse files

currentTotal is not defined on event registration pages.

parent ae1c5183
No related branches found
No related tags found
No related merge requests found
......@@ -143,9 +143,11 @@
if ($('#priceset').length) {
additionalParticipants = cj("#additional_participants").val();
// The currentTotal is already being calculated in Form/Contribution/Main.tpl.
if (currentTotal == 0 && !additionalParticipants) {
// This is also hit when "Going back", but we already have stripe_token.
return true;
if(typeof currentTotal !== 'undefined') {
if (currentTotal == 0 && !additionalParticipants) {
// This is also hit when "Going back", but we already have stripe_token.
return true;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment