Skip to content

Commit

Permalink
feat: show last chart data as non-hover price
Browse files Browse the repository at this point in the history
  • Loading branch information
fabryscript committed Dec 17, 2024
1 parent 5105742 commit 2b5066c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/web/components/pages/asset-info-page/chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ const ChartHeader = observer(() => {
data = decHoverPrice;
} else {
if (assetInfoConfig.dataType === "price") {
data =
marketAsset?.currentPrice?.toDec() ??
new Dec(assetInfoConfig.lastChartData?.close ?? 0);
data = new Dec(assetInfoConfig.lastChartData?.close ?? 0);
} else {
data = marketAsset?.volume24h?.toDec() ?? new Dec(0);
}
Expand All @@ -201,7 +199,6 @@ const ChartHeader = observer(() => {
assetInfoConfig.hoverData,
assetInfoConfig.dataType,
assetInfoConfig.lastChartData?.close,
marketAsset?.currentPrice,
marketAsset?.volume24h,
]);

Expand Down

0 comments on commit 2b5066c

Please sign in to comment.