Skip to content

Commit

Permalink
ADM-963 fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
guzhongren committed Jun 6, 2024
1 parent c0522db commit 750f45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export const convertNumberToPercent = (num: number): string => {
};

export const percentageFormatter = (showPercentage = true) => {
return (value: number) => value + (showPercentage ? '%' : '');
return (value: unknown) => value + (showPercentage ? '%' : '');
};
export const valueFormatter = (value: number) => {
if (isNaN(value)) {
Expand Down

0 comments on commit 750f45e

Please sign in to comment.