fix: change from data.data to data in setCountryInfo

This commit is contained in:
Leon Xu committed 2022-05-03 15:08:48 -07:00
1 parent 4ac02574d4
commit 36894befad
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ function App() {
.then((res) => res.json())
.then((data) => {
setCountry(countryCode);
setCountryInfo(data.data);
setCountryInfo(data);
});
};