From 8c7a0e24a3e338b71a88b03ce5a2ae74b3f53a11 Mon Sep 17 00:00:00 2001 From: Dexter Edwards Date: Thu, 30 Jun 2022 17:27:12 +0100 Subject: [PATCH] fix: safari crashing because of date value (#692) --- libs/order-list/src/lib/components/mocks/generate-orders.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/order-list/src/lib/components/mocks/generate-orders.ts b/libs/order-list/src/lib/components/mocks/generate-orders.ts index d9c598380..2c753aa68 100644 --- a/libs/order-list/src/lib/components/mocks/generate-orders.ts +++ b/libs/order-list/src/lib/components/mocks/generate-orders.ts @@ -61,8 +61,8 @@ export const limitOrder = generateOrder({ type: OrderType.Limit, status: OrderStatus.Active, timeInForce: OrderTimeInForce.GTT, - createdAt: new Date('2022-3-3').toISOString(), - expiresAt: new Date('2022-3-5').toISOString(), + createdAt: new Date(2022, 3, 3).toISOString(), + expiresAt: new Date(2022, 3, 5).toISOString(), }); export const marketOrder = generateOrder({