We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14bd0c3 commit 84e03cfCopy full SHA for 84e03cf
1 file changed
src/Model/SQS/MarketingPreference.model.js
@@ -466,7 +466,7 @@ export default class MarketingPreference extends Model {
466
&& this.getPermissionEmail() !== ''
467
&& this.getPermissionEmail() !== '0')
468
|| this.getEmail() !== '') {
469
- if (this.getEmail() !== '' && this.getEmail() !== null) {
+ if (this.getEmail()) {
470
requestConstraintsClone.email = { email: true };
471
} else {
472
requestConstraintsClone.email = { presence: { allowEmpty: false }, email: true };
0 commit comments