fix(donate): show message for legacy donors (#37844)

This commit is contained in:
mrugesh
2019-11-30 01:39:45 +05:30
committed by GitHub
parent c331b12413
commit 81bb677def

View File

@ -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 (
<div className='servicebot-embed-panel'>
@ -92,7 +96,7 @@ export class DonationSettingsPage extends Component {
<Panel>
<Spacer />
<p className='text-center'>
Select the email associated to your donations above.
Select the email associated with your donations above.
</p>
</Panel>
) : (
@ -108,6 +112,14 @@ export class DonationSettingsPage extends Component {
renderDonationEmailsList() {
const { donationEmails } = this.props;
if (!donationEmails || donationEmails.length === 0) {
return (
<p>
Some of the data associated with your donation is unavailable. Please
contact team@freeCodeCamp.org to get your donation updated manually.
</p>
);
}
return uniq(donationEmails).map(email => (
<Button
bsStyle='primary'