Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Malebestia committed May 26, 2024
1 parent 8bf83a2 commit c3b08f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Filament/Widgets/Samples/OverlookWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function convertCount(string $number): string

public function formatRawCount(string $number): string
{
return number_format($number);
return number_format((float) $number);
}

/**
Expand Down Expand Up @@ -101,8 +101,8 @@ public function getData(): array
if ($res->canViewAny()) {
return [
'name' => $title,
'raw_count' => $this->formatRawcount($rawCount),
'count' => $this->convertCount($rawCount),
'raw_count' => $this->formatRawcount((string) $rawCount),
'count' => $this->convertCount((string) $rawCount),
'icon' => $customIcon ?: $res->getNavigationIcon(),
'url' => $res->getUrl('index'),
];
Expand Down

0 comments on commit c3b08f4

Please sign in to comment.