From 36894befadb107645d7601f9d8d2cc0a9917d743 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Tue, 3 May 2022 15:08:48 -0700 Subject: [PATCH] fix: change from data.data to data in setCountryInfo --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index afc1aac..fcda696 100644 --- a/src/App.js +++ b/src/App.js @@ -61,7 +61,7 @@ function App() { .then((res) => res.json()) .then((data) => { setCountry(countryCode); - setCountryInfo(data.data); + setCountryInfo(data); }); };