This commit is contained in:
Mike Fitzpatrick
2019-08-07 17:49:34 -04:00
parent aea9bbda96
commit dfc4daf696
14 changed files with 522 additions and 172 deletions

View File

@@ -28,6 +28,17 @@ export default class Profile extends Record({
return `${this.firstName} ${this.lastName}`;
}
get initials() {
const firstInitial = this.firstName ? this.firstName.substring(0,1) : null;
const lastInitial = this.firstName ? this.firstName.substring(0,1) : null;
if (!firstInitial && !lastInitial) {
return null;
}
return `${firstInitial || ''}${lastInitial || ''}`;
}
get isRegisteredAccount() {
return (
this.hasLinkedApple ||