fix(donate): show message for legacy donors (#37844)
This commit is contained in:
@ -85,6 +85,10 @@ export class DonationSettingsPage extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderServicebotEmbed() {
|
renderServicebotEmbed() {
|
||||||
|
const { donationEmails } = this.props;
|
||||||
|
if (!donationEmails || donationEmails.length === 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
const { currentSettingsEmail, hash } = this.state;
|
const { currentSettingsEmail, hash } = this.state;
|
||||||
return (
|
return (
|
||||||
<div className='servicebot-embed-panel'>
|
<div className='servicebot-embed-panel'>
|
||||||
@ -92,7 +96,7 @@ export class DonationSettingsPage extends Component {
|
|||||||
<Panel>
|
<Panel>
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<p className='text-center'>
|
<p className='text-center'>
|
||||||
Select the email associated to your donations above.
|
Select the email associated with your donations above.
|
||||||
</p>
|
</p>
|
||||||
</Panel>
|
</Panel>
|
||||||
) : (
|
) : (
|
||||||
@ -108,6 +112,14 @@ export class DonationSettingsPage extends Component {
|
|||||||
|
|
||||||
renderDonationEmailsList() {
|
renderDonationEmailsList() {
|
||||||
const { donationEmails } = this.props;
|
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 => (
|
return uniq(donationEmails).map(email => (
|
||||||
<Button
|
<Button
|
||||||
bsStyle='primary'
|
bsStyle='primary'
|
||||||
|
Reference in New Issue
Block a user