Skip to content

Commit

Permalink
Added TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Oct 3, 2023
1 parent f9752fa commit ef210dc
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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'
})`}
</p>
</>
)}
Expand Down

0 comments on commit ef210dc

Please sign in to comment.