mirror of
https://github.com/germondai/trawl.git
synced 2026-08-17 12:11:23 +02:00
refactor(web): simplify GitHub stars fallback
This commit is contained in:
@@ -12,7 +12,7 @@ export function useGithubStars() {
|
||||
if (typeof n !== "number") return
|
||||
stars.value = n >= 1000 ? `${(n / 1000).toFixed(1)}k` : String(n)
|
||||
} catch {
|
||||
// stays null — GitHub link still renders without the count
|
||||
// The GitHub link still renders without the count.
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user