Getting error adding registrant in some cases.
findByEmail = this.model.registrants.where({email: email});
}
var regRequest = cart.get( 'request' );
+ var parent = this.model.get('parent');
+ console.log( parent );
+ if ( !parent ) {
+ console.log( 'Parent not there!' );
+ return;
+ }
if ( findByEmail.length === 0 ) {
this.model.registrants.create({
option: 'add',
findByEmail = this.model.registrants.where({email: email});
}
var regRequest = cart.get( 'request' );
+ var parent = this.model.get('parent');
+ console.log( parent );
+ if ( !parent ) {
+ console.log( 'Parent not there!' );
+ return;
+ }
if ( findByEmail.length === 0 ) {
this.model.registrants.create({
option: 'add',