diff --git a/.gitignore b/.gitignore index 4d29575de..973704bd9 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,7 @@ .env.development.local .env.test.local .env.production.local - npm-debug.log* yarn-debug.log* yarn-error.log* +.nvmrc diff --git a/public/data.csv b/public/data.csv index 0e877ac42..b4e97ef4e 100644 --- a/public/data.csv +++ b/public/data.csv @@ -108,15 +108,15 @@ date,country 2022-9-28,ae 2022-9-29,vu 2022-9-30,st -2022-10-1,tv -2022-10-2,mn -2022-10-3,ec -2022-10-4,co -2022-10-5,bd -2022-10-6,sy -2022-10-7,sv -2022-10-8,bn -2022-10-9,bl +2022-10-01,tv +2022-10-02,mn +2022-10-03,ec +2022-10-04,co +2022-10-05,bd +2022-10-06,sy +2022-10-07,sv +2022-10-08,bn +2022-10-09,bl 2022-10-10,ar 2022-10-11,cg 2022-10-12,ve @@ -139,15 +139,15 @@ date,country 2022-10-29,tl 2022-10-30,fr 2022-10-31,hu -2022-11-1,ag -2022-11-2,mf -2022-11-3,fm -2022-11-4,mp -2022-11-5,aw -2022-11-6,to -2022-11-7,kg -2022-11-8,az -2022-11-9,kh +2022-11-01,ag +2022-11-02,mf +2022-11-03,fm +2022-11-04,mp +2022-11-05,aw +2022-11-06,to +2022-11-07,kg +2022-11-08,az +2022-11-09,kh 2022-11-10,np 2022-11-11,de 2022-11-12,km @@ -169,15 +169,15 @@ date,country 2022-11-28,vn 2022-11-29,es 2022-11-30,gi -2022-12-1,ss -2022-12-2,us -2022-12-3,qa -2022-12-4,mw -2022-12-5,ls -2022-12-6,pf -2022-12-7,si -2022-12-8,ad -2022-12-9,bb +2022-12-01,ss +2022-12-02,us +2022-12-03,qa +2022-12-04,mw +2022-12-05,ls +2022-12-06,pf +2022-12-07,si +2022-12-08,ad +2022-12-09,bb 2022-12-10,kw 2022-12-11,mx 2022-12-12,ms @@ -200,15 +200,15 @@ date,country 2022-12-29,lv 2022-12-30,mg 2022-12-31,ro -2023-1-1,dm -2023-1-2,ye -2023-1-3,gd -2023-1-4,th -2023-1-5,ky -2023-1-6,la -2023-1-7,hn -2023-1-8,ie -2023-1-9,kp +2023-1-01,dm +2023-1-02,ye +2023-1-03,gd +2023-1-04,th +2023-1-05,ky +2023-1-06,la +2023-1-07,hn +2023-1-08,ie +2023-1-09,kp 2023-1-10,hr 2023-1-11,ge 2023-1-12,kn @@ -231,15 +231,15 @@ date,country 2023-1-29,no 2023-1-30,ne 2023-1-31,ai -2023-2-1,gn -2023-2-2,mv -2023-2-3,ht -2023-2-4,ke -2023-2-5,bz -2023-2-6,id -2023-2-7,jm -2023-2-8,ma -2023-2-9,iq +2023-2-01,gn +2023-2-02,mv +2023-2-03,ht +2023-2-04,ke +2023-2-05,bz +2023-2-06,id +2023-2-07,jm +2023-2-08,ma +2023-2-09,iq 2023-2-10,cf 2023-2-11,rs 2023-2-12,tc @@ -259,15 +259,15 @@ date,country 2023-2-26,mz 2023-2-27,lb 2023-2-28,ca -2023-3-1,cn -2023-3-2,dk -2023-3-3,it -2023-3-4,sb -2023-3-5,gm -2023-3-6,pl -2023-3-7,gt -2023-3-8,rw -2023-3-9,ua +2023-3-01,cn +2023-3-02,dk +2023-3-03,it +2023-3-04,sb +2023-3-05,gm +2023-3-06,pl +2023-3-07,gt +2023-3-08,rw +2023-3-09,ua 2023-3-10,cl 2023-3-11,lc 2023-3-12,nu @@ -290,15 +290,15 @@ date,country 2023-3-29,sr 2023-3-30,ly 2023-3-31,tj -2023-4-1,af -2023-4-2,gu -2023-4-3,wf -2023-4-4,sd -2023-4-5,sh -2023-4-6,fk -2023-4-7,lr -2023-4-8,cc -2023-4-9,uy +2023-4-01,af +2023-4-02,gu +2023-4-03,wf +2023-4-04,sd +2023-4-05,sh +2023-4-06,fk +2023-4-07,lr +2023-4-08,cc +2023-4-09,uy 2023-4-10,so 2023-4-11,cx 2023-4-12,al diff --git a/src/components/Game.tsx b/src/components/Game.tsx index 44a374c4d..8961e6ea2 100644 --- a/src/components/Game.tsx +++ b/src/components/Game.tsx @@ -150,10 +150,10 @@ export function Game({ settingsData }: GameProps) { let iframeSrc = "https://oec.world/en/tradle/aprilfools.html"; let oecLink = "https://oec.world/"; + const country3LetterCode = country?.code + ? countryISOMapping[country.code].toLowerCase() + : ""; if (!isAprilFools) { - const country3LetterCode = country?.code - ? countryISOMapping[country.code].toLowerCase() - : ""; iframeSrc = `https://oec.world/en/visualize/embed/tree_map/hs92/export/${country3LetterCode}/all/show/2020/?controls=false&title=false&click=false`; oecLink = `https://oec.world/en/profile/country/${country3LetterCode}`; } @@ -181,20 +181,22 @@ export function Game({ settingsData }: GameProps) { height: 0, }} > -