From e44ed626a65a9677d511a3753883adb7164123bc Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Wed, 4 Oct 2023 12:32:17 -0700 Subject: [PATCH] Fixed build errors. --- packages/state/recoil/selectors/contracts/DaoCore.v2.ts | 4 ++-- .../stateful/components/dao/DaoTreasuryHistoryGraph.tsx | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/state/recoil/selectors/contracts/DaoCore.v2.ts b/packages/state/recoil/selectors/contracts/DaoCore.v2.ts index 0d5cf8030..fb8351366 100644 --- a/packages/state/recoil/selectors/contracts/DaoCore.v2.ts +++ b/packages/state/recoil/selectors/contracts/DaoCore.v2.ts @@ -1280,7 +1280,7 @@ export const valenceAccountSelector = selectorFamily< }, targets: [ { - timestamp: new Date(0), + timestamp: 0, target: 0.75, }, ], @@ -1292,7 +1292,7 @@ export const valenceAccountSelector = selectorFamily< }, targets: [ { - timestamp: new Date(0), + timestamp: 0, target: 0.25, }, ], diff --git a/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx b/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx index 09aaa0c36..1d434e72a 100644 --- a/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx +++ b/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx @@ -205,10 +205,13 @@ export const DaoTreasuryHistoryGraph = ({ ...data, pointRadius: - ('pointRadius' in data ? Number(data.pointRadius) : undefined) ?? 1, + ('pointRadius' in data + ? Number((data as any).pointRadius) + : undefined) ?? 1, pointHitRadius: - ('pointHitRadius' in data ? Number(data.pointHitRadius) : undefined) ?? - 10, + ('pointHitRadius' in data + ? Number((data as any).pointHitRadius) + : undefined) ?? 10, }) )