Commit 94aecd32 by Giang Tran

fix bug methodpay

parent f4dfaacb
...@@ -905,7 +905,7 @@ ...@@ -905,7 +905,7 @@
CODE_SIGN_ENTITLEMENTS = Invest/InvestDebug.entitlements; CODE_SIGN_ENTITLEMENTS = Invest/InvestDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 17; CURRENT_PROJECT_VERSION = 15;
DEVELOPMENT_TEAM = MXZ24GRH48; DEVELOPMENT_TEAM = MXZ24GRH48;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
...@@ -939,7 +939,7 @@ ...@@ -939,7 +939,7 @@
CODE_SIGN_ENTITLEMENTS = Invest/Invest.entitlements; CODE_SIGN_ENTITLEMENTS = Invest/Invest.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 17; CURRENT_PROJECT_VERSION = 15;
DEVELOPMENT_TEAM = MXZ24GRH48; DEVELOPMENT_TEAM = MXZ24GRH48;
INFOPLIST_FILE = Invest/Info.plist; INFOPLIST_FILE = Invest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
......
...@@ -2,7 +2,6 @@ import React, {useEffect, useState} from 'react'; ...@@ -2,7 +2,6 @@ import React, {useEffect, useState} from 'react';
import {Platform} from 'react-native'; import {Platform} from 'react-native';
import WithdrawView from './WithdrawView'; import WithdrawView from './WithdrawView';
import {getListWidthDraw} from '../../../apis/Functions/Widthdraw';
import {Alert} from 'react-native'; import {Alert} from 'react-native';
const Withdraw = (props) => { const Withdraw = (props) => {
......
...@@ -13,6 +13,7 @@ const Item = (props) => { ...@@ -13,6 +13,7 @@ const Item = (props) => {
const {item} = props; const {item} = props;
return ( return (
<TouchableOpacity onPress={() => navigate.navigate(METHODPAYDETAIL, item)}> <TouchableOpacity onPress={() => navigate.navigate(METHODPAYDETAIL, item)}>
{item.bank ? (
<View style={styles.container}> <View style={styles.container}>
<Block flex={1} row center padding={[10, 10]}> <Block flex={1} row center padding={[10, 10]}>
<Image source={{uri: item.bank.logo}} style={styles.imgIcon} /> <Image source={{uri: item.bank.logo}} style={styles.imgIcon} />
...@@ -52,6 +53,9 @@ const Item = (props) => { ...@@ -52,6 +53,9 @@ const Item = (props) => {
</Block> </Block>
</Block> </Block>
</View> </View>
) : (
<View />
)}
</TouchableOpacity> </TouchableOpacity>
); );
}; };
......
...@@ -31,6 +31,7 @@ const MethodPay = (props) => { ...@@ -31,6 +31,7 @@ const MethodPay = (props) => {
setRefresh(false); setRefresh(false);
if (res.data.code == 200 && res.data.data) { if (res.data.code == 200 && res.data.data) {
setData(res.data.data); setData(res.data.data);
console.log(res.data.data);
} else { } else {
showAlert(TYPE.ERROR, I18n.t('Notification'), I18n.t('Can_not_get_data')); showAlert(TYPE.ERROR, I18n.t('Notification'), I18n.t('Can_not_get_data'));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment