Fix a few types: relax contact, Email->Phone
This commit is contained in:
parent
80b069e9b6
commit
8f934251ae
2 changed files with 2 additions and 2 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Reference in a new issue