Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hnimtadd committed Sep 11, 2024
1 parent 5c36208 commit c02fbe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/wallet/src/components/TotalPnL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const TotalPnL: FC<Props> = ({
isDarkTheme = false,
numDigit = 2,
}) => {
if (numDigit <= 0) { numDigit = 2 }
if (numDigit <= 0) {
numDigit = 2;
}
const baseDigit = 10 ** numDigit;
value = Math.round(value * baseDigit) / baseDigit;
percentage = Math.round(percentage * baseDigit) / baseDigit;
Expand Down

0 comments on commit c02fbe6

Please sign in to comment.