Skip to content

Commit 1302a25

Browse files
authored
Merge pull request #302 from PretendoNetwork/dev
Release - Hotfix
2 parents 8349e55 + e222390 commit 1302a25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mailer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ export class CreateEmail {
165165
break;
166166
case 'button':
167167
if (c.link) {
168-
el = `<a href="${c.link}" style="color:#fff;" width="100%">${el}</a>`;
168+
el = `<a href="${c.link}" style="color:#fff;" width="100%">${c.text}</a>`;
169169
} else {
170-
el = `<span style="color:#fff;" width="100%">${el}</span>`;
170+
el = `<span style="color:#fff;" width="100%">${c.text}</span>`;
171171
}
172172
innerHTML += `\n<tr><td ${c.primary ? 'class="primary button" bgcolor="#673db6"' : 'class="secondary button" bgcolor="#373C65"'} style="font-weight:700;border-radius:10px;padding:12px" align="center">${this.addGmailDarkModeFix(el)}</td></tr>`;
173173
break;

0 commit comments

Comments
 (0)