We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59ecaa3 + 4d9ea56 commit 3c4f82bCopy full SHA for 3c4f82b
lib/helpers/mail/mail.js
@@ -623,7 +623,13 @@ function Personalization() {
623
this.substitutions = {};
624
}
625
var currentKey = Object.keys(substitution)[0];
626
- this.substitutions[currentKey] = substitution[currentKey].toString();
+ var currentVal = substitution[currentKey];
627
+ if (currentVal === null || typeof currentVal === 'undefined') {
628
+ this.substitutions[currentKey] = '';
629
+ }
630
+ else {
631
+ this.substitutions[currentKey] = currentVal.toString();
632
633
};
634
635
this.getSubstitutions = function() {
0 commit comments