Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaBonde committed Nov 27, 2024
1 parent e9f5383 commit 295c85f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/actions/agreementActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ export async function saveChanges(
}
function ensureDatesOnAgreement(agreement: Agreement) {
if (typeof agreement.endDate === "string") {
agreement.endDate = new Date(agreement.endDate );
agreement.endDate = new Date(agreement.endDate);
}

if (typeof agreement.startDate === "string") {
agreement.startDate = new Date(agreement.startDate );
agreement.startDate = new Date(agreement.startDate);
}

if (typeof agreement.nextPriceAdjustmentDate === "string") {
agreement.nextPriceAdjustmentDate = new Date(
agreement.nextPriceAdjustmentDate ,
agreement.nextPriceAdjustmentDate,
);
}

Expand Down

0 comments on commit 295c85f

Please sign in to comment.