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.
1 parent eb7bce7 commit 4d9ea56Copy full SHA for 4d9ea56
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