Skip to content

Commit

Permalink
use full value for tooltip depth chart
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed Jan 12, 2024
1 parent b96e9f5 commit 4db5b7c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/trade/depthChartWidget/useDepthChartWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ export const useDepthChartWidget = (base?: Token, quote?: Token) => {
tooltip: {
headerFormat: ' ',
formatter: function () {
if (this.x === undefined) return '';
const x = prettifyNumber(this.x);
return `Amount: ${this.y} ${base?.symbol}<br/>Price: ${x} ${quote?.symbol}`;
return `Amount: ${this.y} ${base?.symbol}<br/>Price: ${this.x} ${quote?.symbol}`;
},
valueDecimals: undefined,
borderRadius: 12,
Expand Down

0 comments on commit 4db5b7c

Please sign in to comment.