Skip to content

Commit

Permalink
fix node error
Browse files Browse the repository at this point in the history
  • Loading branch information
macarthuror committed May 26, 2020
1 parent 612bd38 commit 7f655e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ var SmtpMailAdapter = mailOptions => {
const appName = data.appName;
const defOptions = mailOptions.confirmOptions;
const options = mailOptions.passwordOptions.others || {};
const langOptions = mailOptions.multiLangConfirm[user.lang];
const langOptions = mailOptions.multiLangConfirm
? mailOptions.multiLangConfirm[user.lang] : {};

let subject = (_multiLang && typeof langOptions !== 'undefined')
? langOptions.subject
Expand Down Expand Up @@ -267,7 +268,8 @@ var SmtpMailAdapter = mailOptions => {
const appName = data.appName;
const defOptions = mailOptions.passwordOptions;
const options = mailOptions.passwordOptions.others || {};
const langOptions = mailOptions.multiLangPass[user.lang];
const langOptions = mailOptions.multiLangPass
? mailOptions.multiLangPass[user.lang] : {};

let subject = (_multiLang && typeof langOptions !== 'undefined')
? langOptions.subject
Expand Down

0 comments on commit 7f655e4

Please sign in to comment.