@ -41,7 +41,7 @@ function getLabelForEmail(method: Email, i18n: Localizer): string {
}
function getLabelForPhone(method: Email, i18n: Localizer): string {
function getLabelForPhone(method: Phone, i18n: Localizer): string {
switch (method.type) {
case ContactType.CUSTOM:
return method.label || i18n('phone');
@ -3,7 +3,7 @@ import Attachments from '../../app/attachments';
import { format as formatPhoneNumber } from '../types/PhoneNumber';
export interface Contact {
name: Name;
name?: Name;
number?: Array<Phone>;
email?: Array<Email>;
address?: Array<PostalAddress>;