Skip to content

Commit

Permalink
style: 🚨 fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Jun 21, 2024
1 parent fc574f6 commit 98aabf4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/Output.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ type StyleProps = {
};

export type OutputProps = ElementProps & StyleProps;
export type FormatNumberProps = ElementProps & { minimumFractionDigits?: number; decimal?: string; group?: string };
export type FormatNumberProps = ElementProps & {
minimumFractionDigits?: number;
decimal?: string;
group?: string;
};

export const formatNumber = (params: FormatNumberProps) => {
const {
Expand Down Expand Up @@ -132,7 +136,7 @@ export const formatNumber = (params: FormatNumberProps) => {
}
: {}),
};

const getFormattedVal = (
val: BigNumber,
fallbackDecimals: number,
Expand Down Expand Up @@ -191,7 +195,9 @@ export const formatNumber = (params: FormatNumberProps) => {
formattedString = getFormattedVal(valueBN, PERCENT_DECIMALS, { suffix: '%' });
break;
case OutputType.SmallPercent:
formattedString = getFormattedVal(valueBN.times(100), SMALL_PERCENT_DECIMALS, { suffix: '%' });
formattedString = getFormattedVal(valueBN.times(100), SMALL_PERCENT_DECIMALS, {
suffix: '%',
});
break;
case OutputType.Multiple:
formattedString = getFormattedVal(valueBN, LEVERAGE_DECIMALS, { suffix: '×' });
Expand Down

0 comments on commit 98aabf4

Please sign in to comment.