mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
parent
b7c00c0cd1
commit
ea7d1b7de9
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ export function countries() {
|
||||||
.reduce((acc, country) => {
|
.reduce((acc, country) => {
|
||||||
if (acc[country.name]) {
|
if (acc[country.name]) {
|
||||||
// exists, update
|
// exists, update
|
||||||
acc[country.name].count += acc[country.name].count;
|
acc[country.name].count += 1;
|
||||||
} else {
|
} else {
|
||||||
acc[country.name] = {
|
acc[country.name] = {
|
||||||
...country,
|
...country,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue