-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Notification templates #583
Conversation
✅ Tests will run for this PR. Once they succeed it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@@ -101,7 +101,7 @@ export class CampaignNewsService { | |||
campaignid: campaign.id, | |||
template_data: { | |||
'campaign.name': campaign?.title, | |||
'campaign.target-amount': campaign?.targetAmount || 0, | |||
'campaign.target-amount': (campaign?.targetAmount && campaign?.targetAmount / 100) || 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is somewhat difficult to read.
I wonder if there is a better way to get the campaign target.
There are a couple of unit tests failing. |
Update the fields for the Notification templates