fix(dialer/ui): fix type

This commit is contained in:
Christopher committed 2021-06-25 21:14:18 +02:00
1 parent b1b412b81e
commit eb5b907091
2 files changed
+4 -4

No files matched your search

@@ -67,7 +67,7 @@ export const DialerHistory = ({ calls }) => {
primary={getDisplayByNumber(call.receiver)}
secondary={
// TODO: Locale changes are pending #168 merge
dayjs().to(dayjs.unix(call.start))
dayjs().to(dayjs.unix(parseInt(call.start)))
}
/>
<IconButton onClick={() => handleCall(call.receiver)}>{<PhoneIcon />}</IconButton>
@@ -92,7 +92,7 @@ export const DialerHistory = ({ calls }) => {
primary={getDisplayByNumber(call.transmitter)}
secondary={
// TODO: Locale changes are pending #168 merge
dayjs().to(dayjs.unix(call.start))
dayjs().to(dayjs.unix(parseInt(call.start)))
}
/>
<IconButton onClick={() => handleCall(call.transmitter)}>
+2 -2
View File
@@ -13,9 +13,9 @@ export interface CallHistoryItem {
transmitterSource?: number;
receiver: string;
receiverSource?: number;
start: number;
start: string;
end?: number;
accepted: boolean;
is_accepted: number;
}
export enum CallEvents {