Skip to content

Commit

Permalink
fix time formatting at handledAt and new messages if reasons is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander14121 committed Jan 6, 2025
1 parent 7c6173d commit 8a85037
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/types/ModalBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export function formatResponseEvent(event: FintEvent | null): JSX.Element {
return <div>
<code>
<p>Adapterid: {event?.responseEvent?.adapterId}</p>
<p>HandledAt: {new Date(String(event?.responseEvent?.handledAt)).toLocaleTimeString()}</p>
<p>HandledAt: {event?.responseEvent?.handledAt ? new Date(Number(event.responseEvent.handledAt) * 1000).toLocaleTimeString() : "N/A"}</p>
<p>OperationType: {event?.responseEvent?.operationType}</p>
<p>Failed: {event?.responseEvent?.failed}</p>
<p>ErrorMessage: {event?.responseEvent?.errorMessage} ingen</p>
<p>recjected: {event?.responseEvent?.rejected}</p>
<p>OperationType: {event?.responseEvent?.rejectReason} null</p>
<p>Failed: {event?.responseEvent?.failed} Not failed</p>
<p>ErrorMessage: {event?.responseEvent?.errorMessage} No error message</p>
<p>recjected: {event?.responseEvent?.rejected} Not receted</p>
<p>OperationType: {event?.responseEvent?.rejectReason} No reject reason</p>

</code>
</div>
Expand Down

0 comments on commit 8a85037

Please sign in to comment.