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 (
@@ -92,7 +96,7 @@ export class DonationSettingsPage extends Component {

- Select the email associated to your donations above. + Select the email associated with your donations above.

) : ( @@ -108,6 +112,14 @@ export class DonationSettingsPage extends Component { renderDonationEmailsList() { const { donationEmails } = this.props; + if (!donationEmails || donationEmails.length === 0) { + return ( +

+ 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 => (