From 92367f182e922320d3cadc7ed494a5892bb0470a Mon Sep 17 00:00:00 2001 From: Matthew Whitfield Date: Tue, 10 Oct 2023 11:08:25 +0100 Subject: [PATCH] remove unnecessary date work from csra summary --- server/mappers/csraReviewToSummaryListMapper.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/mappers/csraReviewToSummaryListMapper.ts b/server/mappers/csraReviewToSummaryListMapper.ts index b9a7b35c7..8051fcd09 100644 --- a/server/mappers/csraReviewToSummaryListMapper.ts +++ b/server/mappers/csraReviewToSummaryListMapper.ts @@ -55,9 +55,7 @@ export default ( { key: { text: 'Next review date' }, value: { - text: csraAssessment.nextReviewDate - ? formatDate(new Date(csraAssessment.nextReviewDate).toISOString(), 'long') - : 'Not entered', + text: csraAssessment.nextReviewDate ? formatDate(csraAssessment.nextReviewDate, 'long') : 'Not entered', }, }, ]