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' + })`}

)}