PINNED country map sets Torvalds to "us" despite comment saying he's Finnish
What happened
Linus Torvalds' card (/u/torvalds) shows the US flag πΊπΈ, but he was born in Helsinki, Finland β the flag should be Finland (fi), not the US.
This isn't a missing-flag bug β the flag renders fine, it's just the wrong country. Root cause is in lib/geo.ts, in the PINNED map used to hardcode showcased accounts' real origin (overriding their freeform GitHub location string):
const PINNED: Record<string, string> = {
torvalds: "us", // Linus Torvalds β Finland <-- comment vs value mismatch
...
};
The inline comment itself says "Finland," and the file-level doc above this map explicitly calls out this exact case β "Torvalds lists Portland, but he's Finnish" β confirming the intended value was "fi", not "us". Looks like a simple typo.
Steps to reproduce
- Go to
gitfut.com/torvalds - Let the card render
- Check the flag on the card β shows US instead of Finland
Expected
Flag should show Finland (fi), matching Torvalds' actual origin and the code's own documented intent.
Suggested fix
torvalds: "fi", // Linus Torvalds β Finland
Card / screenshot
/u/torvalds β https://gitfut.com/torvalds
(screenshot attached below showing the US flag on the rendered card)
Environment
- Browser: N/A (code-level bug, reproducible on any browser)
- OS: N/A
Found this while going through lib/geo.ts. The PINNED map's own inline comment states the intent clearly β override Torvalds' GitHub location because he lists Portland but is actually Finnish β yet the value assigned is "us" instead of "fi". This looks like a straightforward typo rather than a logic issue, since the rest of the PINNED map (theprimeagen, t3dotgg) is correctly mapped.
Happy to open a PR with the one-line fix if that's helpful:
βts torvalds: "fi", // Linus Torvalds β Finland β
Let me know if you'd like me to submit it. @Younesfdj
@sanket1035 fixed the typo, linus stays US as his github profile shows, he is also American by nationality Thanks for the catch