From eb5b9070912d74c3d875693af5ca25658c33d3c2 Mon Sep 17 00:00:00 2001 From: Christopher Date: Fri, 25 Jun 2021 21:14:18 +0200 Subject: [PATCH] fix(dialer/ui): fix type --- phone/src/apps/dialer/components/views/DialerHistory.tsx | 4 ++-- typings/call.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/phone/src/apps/dialer/components/views/DialerHistory.tsx b/phone/src/apps/dialer/components/views/DialerHistory.tsx index 3b3e07c..42547a1 100644 --- a/phone/src/apps/dialer/components/views/DialerHistory.tsx +++ b/phone/src/apps/dialer/components/views/DialerHistory.tsx @@ -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))) } /> handleCall(call.receiver)}>{} @@ -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))) } /> handleCall(call.transmitter)}> diff --git a/typings/call.ts b/typings/call.ts index a3edf59..6e1d90d 100644 --- a/typings/call.ts +++ b/typings/call.ts @@ -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 {