Skip to content

Commit

Permalink
Update retrieveRegistrationStatus.js
Browse files Browse the repository at this point in the history
  • Loading branch information
geekgonecrazy authored Apr 28, 2019
1 parent c43c136 commit 74bd3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/cloud/server/functions/retrieveRegistrationStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function retrieveRegistrationStatus() {
};

const firstUser = Users.getOldest({ emails: 1 });
info.email = firstUser && firstUser.emails[0].address;
info.email = firstUser && firstUser.emails && firstUser.emails[0].address;

if (settings.get('Organization_Email')) {
info.email = settings.get('Organization_Email');
Expand Down

0 comments on commit 74bd3a1

Please sign in to comment.