Commit b5fdfba6 by Giang Tran

fix bug wallet

parent 7c6e90a3
......@@ -10,6 +10,7 @@ import {showAlert, TYPE} from '../../../components/DropdownAlert';
import {useNavigation} from '@react-navigation/native';
import {saveUserToRedux} from '../../../actions/users';
import {getDetailUser} from '../../../apis/Functions/users';
import AppText from '../../../components/AppText';
const MethodPayView = (props) => {
const [data, setData] = useState([]);
......
......@@ -61,6 +61,7 @@ const WalletDeposit = (props) => {
navigate.goBack();
navigate.goBack();
navigate.navigate(ENTER_PASSWORD_SMART_OTP, {
type: 'DEPOSIT',
onGoToSmartOTP: (pinCode, otp) =>
onGoToSmartOTP(pinCode, otp),
});
......@@ -72,6 +73,7 @@ const WalletDeposit = (props) => {
);
} else {
navigate.navigate(ENTER_PASSWORD_SMART_OTP, {
type: 'DEPOSIT',
onGoToSmartOTP: (pinCode, otp) => onGoToSmartOTP(pinCode, otp),
});
}
......
......@@ -129,6 +129,7 @@ const WalletWithdraw = (props) => {
navigate.goBack();
navigate.goBack();
navigate.navigate(ENTER_PASSWORD_SMART_OTP, {
type: 'WITHDRAW',
onGoToSmartOTP: (pinCode, otp) =>
onGoToSmartOTP(pinCode, otp),
});
......@@ -140,6 +141,7 @@ const WalletWithdraw = (props) => {
);
} else {
navigate.navigate(ENTER_PASSWORD_SMART_OTP, {
type: 'WITHDRAW',
onGoToSmartOTP: (pinCode, otp) => onGoToSmartOTP(pinCode, otp),
});
}
......
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