Skip to content

Commit

Permalink
Merge pull request #27 from AplinkosMinisterija/not-empty-responded-at
Browse files Browse the repository at this point in the history
fix responded at date show
  • Loading branch information
ambrazasp authored Nov 4, 2024
2 parents 8454bb9 + 7ad7eec commit 1be9c28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/mapFunctions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ const mapRequestItem = (request: Request) => {
type: requestTypeLabels[request.type],
createdAt: request.createdAt && formatDate(request?.createdAt),
deletedAt: request.deletedAt && formatDate(request.deletedAt),
respondedAt: canShowResponseDate(request?.status) && formatDate(new Date(request.respondedAt)),
respondedAt:
request.respondedAt &&
canShowResponseDate(request?.status) &&
formatDate(new Date(request.respondedAt)),
generatedFile: <FileDownloadContainer url={request.generatedFile} />,
};
};
Expand Down

0 comments on commit 1be9c28

Please sign in to comment.