Skip to content

Commit

Permalink
hotfix: bar offset and wallet alias
Browse files Browse the repository at this point in the history
  • Loading branch information
domechn committed Jul 30, 2023
1 parent 40f423d commit 62979d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/wallet-assets-percentage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const App = ({
datalabels: {
display: "auto",
align: "top",
offset: 7,
offset: Math.max(0, 16 - _(data).size()),
formatter: (value: number) => {
return `${((value / totalValue) * 100).toFixed(2)}%`;
},
Expand Down
5 changes: 3 additions & 2 deletions src/middlelayers/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ export class WalletAnalyzer {
if (!previous) {
res.push({
wallet,
changePercentage: -100,
changeValue: -latest,
walletAlias: walletAliases[wallet],
changePercentage: 100,
changeValue: latest,
})
return
}
Expand Down

0 comments on commit 62979d5

Please sign in to comment.