fix: change from data.data to data in setCountryInfo
This commit is contained in:
1 parent
4ac02574d4
commit
36894befad
1 file changed
+1
-1
+1
-1
@@ -61,7 +61,7 @@ function App() {
|
||||
.then((res) => res.json())
|
||||
.then((data) => {
|
||||
setCountry(countryCode);
|
||||
setCountryInfo(data.data);
|
||||
setCountryInfo(data);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user