diff --git a/app/types/ModalBody.tsx b/app/types/ModalBody.tsx index 20c3414..7784780 100644 --- a/app/types/ModalBody.tsx +++ b/app/types/ModalBody.tsx @@ -22,12 +22,12 @@ export function formatResponseEvent(event: FintEvent | null): JSX.Element { return

Adapterid: {event?.responseEvent?.adapterId}

-

HandledAt: {new Date(String(event?.responseEvent?.handledAt)).toLocaleTimeString()}

+

HandledAt: {event?.responseEvent?.handledAt ? new Date(Number(event.responseEvent.handledAt) * 1000).toLocaleTimeString() : "N/A"}

OperationType: {event?.responseEvent?.operationType}

-

Failed: {event?.responseEvent?.failed}

-

ErrorMessage: {event?.responseEvent?.errorMessage} ingen

-

recjected: {event?.responseEvent?.rejected}

-

OperationType: {event?.responseEvent?.rejectReason} null

+

Failed: {event?.responseEvent?.failed} Not failed

+

ErrorMessage: {event?.responseEvent?.errorMessage} No error message

+

recjected: {event?.responseEvent?.rejected} Not receted

+

OperationType: {event?.responseEvent?.rejectReason} No reject reason