gitfut icon indicating copy to clipboard operation
gitfut copied to clipboard

PINNED country map sets Torvalds to "us" despite comment saying he's Finnish

Open sanket1035 opened this issue 4 months ago β€’ 2 comments

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

  1. Go to gitfut.com/torvalds
  2. Let the card render
  3. 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

Image

(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

sanket1035 avatar Jul 18 '26 20:07 sanket1035

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 avatar Jul 18 '26 20:07 sanket1035

@sanket1035 fixed the typo, linus stays US as his github profile shows, he is also American by nationality Thanks for the catch

Younesfdj avatar Jul 18 '26 23:07 Younesfdj