We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55db20 commit 3c9c376Copy full SHA for 3c9c376
apps/app/src/app/shared/header/header.ts
@@ -78,8 +78,8 @@ export class Header {
78
protected readonly _stars = computed(() => {
79
const count = this._githubInfo.value()?.stars ?? 0;
80
if (count < 1000) return count.toString();
81
- // Divide by 1000, round up to the nearest tenth, and format as "k"
82
- const rounded = Math.ceil((count / 1000) * 10) / 10;
+ // Divide by 1000, round down to the nearest tenth, and format as "k"
+ const rounded = Math.floor((count / 1000) * 10) / 10;
83
return `${rounded}k`;
84
});
85
}
0 commit comments