result_list array as list of countries

This commit was merged in pull request #531.
This commit is contained in:
victorAnumudu
2023-12-18 09:53:42 +01:00
parent fa565437f0
commit b3db82000b
6 changed files with 32 additions and 34 deletions
+2 -2
View File
@@ -41,13 +41,13 @@ const WalletRoutes = () => {
apiCall
.getSignupCountryData()
.then((res) => {
if (res.data.internal_return < 0) {
if (res?.data?.internal_return < 0) {
setAllCountries((prev) => ({ loading: false, data: [] }));
return;
}
setAllCountries((prev) => ({
loading: false,
data: res.data.signup_country,
data: res.data.result_list,
}));
})
.catch((error) => {