Skip to content

Commit

Permalink
fix: hide decimals on stats (#1141)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsobries authored Jan 15, 2025
1 parent a47f6f3 commit 9b6d8e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class="link"
@if ($item === 'most_transactions')
<x-number>{{ $unique->{Str::camel($item)}['value'] }}</x-number>
@elseif ($item === 'largest')
{{ ExplorerNumberFormatter::currencyWithDecimals($unique->{Str::camel($item)}['value'], Network::currency(), 2) }}
{{ ExplorerNumberFormatter::currencyWithDecimals($unique->{Str::camel($item)}['value'], Network::currency(), 0) }}
@else
{{ $unique->{Str::camel($item)}['value'] }}
@endif
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/stats/insights/annual.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<div class="flex justify-between px-8 space-x-3">
<span>@lang('pages.statistics.insights.annual.header.volume'):</span>
<span class="text-theme-secondary-900 dark:text-theme-dark-50">
{{ ExplorerNumberFormatter::currencyWithDecimals($year['volume'], Network::currency(), 2) }}
{{ ExplorerNumberFormatter::currencyWithDecimals($year['volume'], Network::currency(), 0) }}
</span>
</div>
</td>
Expand Down

0 comments on commit 9b6d8e9

Please sign in to comment.