fix(event): address code comments, add banner gradient

This commit is contained in:
Sabe Jones
2020-12-11 15:59:41 -06:00
parent 5c8817c4ef
commit 119502f285
14 changed files with 501 additions and 472 deletions

View File

@@ -190,7 +190,7 @@ function sendSubscriptionNotification ({
const timestamp = new Date();
if (recipient.id) {
const currentEvent = getCurrentEvent();
const promoString = currentEvent && currentEvent.promo && currentEvent.promo ? ' and got a promo' : '';
const promoString = currentEvent && currentEvent.promo ? ' and got a promo' : '';
text = `${buyer.name} ${buyer.id} ${buyer.email} bought a ${months}-month gift subscription for ${recipient.name} ${recipient.id} ${recipient.email}${promoString} using ${paymentMethod} on ${timestamp}`;
} else if (groupId) {
text = `${buyer.name} ${buyer.id} ${buyer.email} bought a 1-month recurring group-plan for ${groupId} using ${paymentMethod} on ${timestamp}`;