Skip to content
Snippets Groups Projects
Commit dabc9e2d authored by Joshua Walker's avatar Joshua Walker
Browse files

Merge pull request #112 from progressivetech/issue109

currentTotal is not defined on event registration pages.
TEMPORARY fix.
parents ae1c5183 5bd7f39c
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