Skip to content

Commit 66f6c9e

Browse files
committed
[usage] Remove rounding of credits in UI
1 parent 39c5542 commit 66f6c9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dashboard/src/components/UsageView.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function UsageView({ attributionId }: UsageViewProps) {
6262
try {
6363
const page = await getGitpodService().server.listUsage(request);
6464
setUsagePage(page);
65-
setTotalCreditsUsed(Math.ceil(page.creditBalanceAtEnd));
65+
setTotalCreditsUsed(page.creditBalanceAtEnd);
6666
} catch (error) {
6767
if (error.code === ErrorCodes.PERMISSION_DENIED) {
6868
setErrorMessage("Access to usage details is restricted to team owners.");
@@ -300,7 +300,7 @@ function UsageView({ attributionId }: UsageViewProps) {
300300
</div>
301301
<div className="flex flex-col my-auto">
302302
<span className="text-right text-gray-500 dark:text-gray-400 font-medium">
303-
{usage.credits.toFixed(1)}
303+
{usage.credits}
304304
</span>
305305
<div className="flex">
306306
<span className="text-right truncate text-sm text-gray-400 dark:text-gray-500">

0 commit comments

Comments
 (0)