Skip to content

Commit

Permalink
fix token count (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
ungarson authored Jun 4, 2022
1 parent a6a7f5b commit 8dfa176
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Vue.use(PortalVue)

Vue.use(Clipboard);

Vue.filter('numberToCompactSIFormat', function (value) {
return SIFormatter.format(roundDownSignificantDigits(Number(value)));
Vue.filter('numberToCompactSIFormat', function (value, decimals) {
return SIFormatter.format(roundDownSignificantDigits(Number(value), decimals));
});

Vue.filter('formatDate', function (value) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/contract/MenuToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
v-if="isContract && tokensTotal > 0"
>
<v-icon left small>mdi-circle-multiple-outline</v-icon>Tokens
<span class="ml-1">({{ tokensTotal | numberToCompactSIFormat }})</span>
<span class="ml-1">({{ tokensTotal | numberToCompactSIFormat(1) }})</span>
</v-tab>
<v-tab
:to="pushTo({ name: 'transfers' })"
Expand Down

0 comments on commit 8dfa176

Please sign in to comment.