From ef210dcfd9dd5006029b3583bbbb99c64c8ca0f9 Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Wed, 27 Sep 2023 17:13:17 -0700 Subject: [PATCH] Added TODO. --- .../components/dao/DaoTreasuryHistoryGraph.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx b/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx index d34fc8851..ac491dd57 100644 --- a/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx +++ b/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx @@ -43,6 +43,7 @@ ChartJS.register( Legend ) +// TODO: add way to set base price denom to use instead of USD export const DaoTreasuryHistoryGraph = ({ filter, targets, @@ -370,15 +371,13 @@ export const DaoTreasuryHistoryGraph = ({ (value / tooltipTotalValue) * 100 )} - {!!targetValue && ( - <> - {' (target: '} - {formatPercentOf100( - (targetValue / tooltipTotalValue) * 100 - )} - {')'} - - )} + {` (${ + typeof targetValue === 'number' + ? `target: ${formatPercentOf100( + (targetValue / tooltipTotalValue) * 100 + )}` + : 'no target' + })`}

)}