File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ export class Batch {
42
42
}
43
43
}
44
44
const reactElement = email . react as React . ReactElement ;
45
- const html = await this . renderAsync ( reactElement ) ;
46
- email . html = html ;
45
+ email . html = await this . renderAsync ( reactElement ) ;
47
46
if ( email . text === undefined ) {
48
47
email . text = await this . renderAsync ( reactElement , {
49
48
plainText : true ,
Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ export class Emails {
52
52
}
53
53
54
54
const reactElement = payload . react as React . ReactElement ;
55
- const html = await this . renderAsync ( reactElement ) ;
56
- payload . html = html ;
55
+ payload . html = await this . renderAsync ( reactElement ) ;
57
56
if ( payload . text === undefined ) {
58
57
payload . text = await this . renderAsync ( reactElement , {
59
58
plainText : true ,
You can’t perform that action at this time.
0 commit comments