Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
denniske committed Nov 5, 2024
1 parent 2bafc4b commit 962d9f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/app/statistics/leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ function isCountry(x: string | null) {
return countriesDistinct.includes(x?.toUpperCase() as Country);
}

// Memoize? Maybe not needed because of react 19
export function LeaderboardMenu() {
const mutate = useMutate();
const country = useSelector((state) => state.leaderboardCountry) || null;
const authCountry = useSelector((state) => state.prefs.country);
const authClan = useSelector((state) => state.prefs.clan);
const isFocused = useIsFocused();

console.log('LeaderboardMenu', country);

const formatCountry = (x: string | null, inList?: boolean) => {
if (x == countryEarth) {
return getTranslation('country.earth');
Expand Down

0 comments on commit 962d9f5

Please sign in to comment.