Skip to content

Commit

Permalink
Merge pull request #39 from reflexer-labs/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mstfash authored Jan 5, 2021
2 parents e128091 + 1edf504 commit 0171170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const formatNumber = (value: string, digits = 4, round = false) => {
export const getRatePercentage = (value: string) => {
const rate = Number(value);
let ratePercentage = rate < 1 ? (1 - rate) * -1 : rate - 1;
return formatNumber(String(ratePercentage * 100), 0);
return formatNumber(String(ratePercentage * 100));
};

export const toFixedString = (
Expand Down

0 comments on commit 0171170

Please sign in to comment.