From 81bb677defc6b5fac433597469148b323e7ade4d Mon Sep 17 00:00:00 2001 From: mrugesh <1884376+raisedadead@users.noreply.github.com> Date: Sat, 30 Nov 2019 01:39:45 +0530 Subject: [PATCH] fix(donate): show message for legacy donors (#37844) --- client/src/pages/donation/settings.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/client/src/pages/donation/settings.js b/client/src/pages/donation/settings.js index 94b6c08bc2..8324b8ea1c 100644 --- a/client/src/pages/donation/settings.js +++ b/client/src/pages/donation/settings.js @@ -85,6 +85,10 @@ export class DonationSettingsPage extends Component { } renderServicebotEmbed() { + const { donationEmails } = this.props; + if (!donationEmails || donationEmails.length === 0) { + return null; + } const { currentSettingsEmail, hash } = this.state; return (
- Select the email associated to your donations above. + Select the email associated with your donations above.
+ Some of the data associated with your donation is unavailable. Please + contact team@freeCodeCamp.org to get your donation updated manually. +
+ ); + } return uniq(donationEmails).map(email => (