Skip to content

Commit

Permalink
Remove decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
neuodev committed May 23, 2022
1 parent 969b266 commit ed5431f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,11 @@ export default class UserSummary extends Component<Props> {
.shiftedBy(-tokenInfo.Metadata.numberOfDecimals)
.decimalPlaces(tokenInfo.Metadata.numberOfDecimals)
.toString();
const splitAmount = tokenAmount.split('.');
const amountNode = this.props.shouldHideBalance
? <>{hiddenAmount}</>
: (
<>
{splitAmount[0]}
<span className={styles.decimal}>{splitAmount[1] ? '.' + splitAmount[1] : null} </span>
{tokenAmount}
</>
);
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@
.value {
font-size: 30px;
line-height: 45px;

.decimal {
font-size: 24px;
}
}

.note {
Expand Down

0 comments on commit ed5431f

Please sign in to comment.