diff --git a/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx b/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx index cc8d535d0..b810063ca 100644 --- a/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx +++ b/packages/stateful/components/dao/DaoTreasuryHistoryGraph.tsx @@ -153,10 +153,8 @@ export const DaoTreasuryHistoryGraph = ({ return [] } - const borderColor = - DISTRIBUTION_COLORS[tokenIndex % DISTRIBUTION_COLORS.length] + const { token } = treasuryValueHistory.data.tokens[tokenIndex] - const token = treasuryValueHistory.data.tokens[tokenIndex].token return { token, order: 3, @@ -164,7 +162,8 @@ export const DaoTreasuryHistoryGraph = ({ '$' + transformIbcSymbol(token.symbol).tokenSymbol + ' Target', data, borderDash: [2.5, 2.5], - borderColor, + borderColor: + DISTRIBUTION_COLORS[tokenIndex % DISTRIBUTION_COLORS.length], pointRadius: 0, pointHitRadius: 0, borderWidth: 2.5,