We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 992f4a7 commit 4955a80Copy full SHA for 4955a80
src/theme/BackerBanner/index.js
@@ -51,7 +51,7 @@ async function getBackers() {
51
avatarUrl
52
} = backer.sponsor;
53
// It is in US cents
54
- const monthlyAmount = (backer.tier.amountDonated / 100);
+ const monthlyAmount = backer.tier ? (backer.tier.amountDonated / 100) : 0;
55
56
let href;
57
if (githubHandle) {
@@ -68,7 +68,7 @@ async function getBackers() {
68
key: href,
69
src: avatarUrl,
70
alt: usersName,
71
- title: `Thank you ${usersName} for the $${monthlyAmount}/month!`,
+ title: monthlyAmount ? `Thank you ${usersName} for the $${monthlyAmount}/month!` : 'Thank you ${usersName} for the support!',
72
href: href,
73
};
74
});
0 commit comments