Skip to content

Commit

Permalink
remove the digit from wei pipe transform (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay authored Feb 22, 2024
1 parent 085c01e commit b6728d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@
/><span class="icon-sattt"></span>
</div>
<div>
{{ ratio?.view | fromWeiTo: currencyName | number }}
{{ ratio?.view | fromWeiTo: currencyName }}
</div>
</div>
<div
Expand All @@ -787,7 +787,7 @@
/><span class="icon-sattt"></span>
</div>
<div>
{{ ratio?.like | fromWeiTo: currencyName | number }}
{{ ratio?.like | fromWeiTo: currencyName }}
</div>
</div>
<div
Expand All @@ -801,7 +801,7 @@
/><span class="icon-sattt"></span>
</div>
<div>
{{ ratio?.share | fromWeiTo: currencyName | number }}
{{ ratio?.share | fromWeiTo: currencyName }}
</div>
</div>
<div
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/pipes/wei-to-sa-tt.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class ConvertFromWei implements PipeTransform {
}

return (
(!!decimals && new Big(value).div(decimals).round(digits).toString()) ||
(!!decimals && new Big(value).div(decimals).toString()) ||
'0'
);
}
Expand Down

0 comments on commit b6728d6

Please sign in to comment.