|
@@ -80,7 +80,7 @@ export default class PaymentMethod extends Component {
|
|
|
title: info.title,
|
|
title: info.title,
|
|
|
value: info.value
|
|
value: info.value
|
|
|
};
|
|
};
|
|
|
- if (this.state.cIndex == 0) {
|
|
|
|
|
|
|
+ if (this.state.cIndex == 1) {
|
|
|
goBack();
|
|
goBack();
|
|
|
} else {
|
|
} else {
|
|
|
const amount = this.state.amountList[this.state.selectIndex].amount;
|
|
const amount = this.state.amountList[this.state.selectIndex].amount;
|
|
@@ -119,7 +119,7 @@ export default class PaymentMethod extends Component {
|
|
|
title: info.title,
|
|
title: info.title,
|
|
|
value: info.value
|
|
value: info.value
|
|
|
};
|
|
};
|
|
|
- if (this.state.cIndex == 0) {
|
|
|
|
|
|
|
+ if (this.state.cIndex == 1) {
|
|
|
goBack();
|
|
goBack();
|
|
|
} else {
|
|
} else {
|
|
|
const amount = this.state.amountList[this.state.selectIndex].amount;
|
|
const amount = this.state.amountList[this.state.selectIndex].amount;
|
|
@@ -201,7 +201,7 @@ export default class PaymentMethod extends Component {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
</View>
|
|
</View>
|
|
|
- { this.state.cIndex > 0 &&
|
|
|
|
|
|
|
+ { this.state.cIndex == 0 &&
|
|
|
<View style={[styles.optionView, ui.flex1]}>
|
|
<View style={[styles.optionView, ui.flex1]}>
|
|
|
<WalletTitle>Pay Per Use</WalletTitle>
|
|
<WalletTitle>Pay Per Use</WalletTitle>
|
|
|
<Text style={styles.subTitle}>Choose Amount:</Text>
|
|
<Text style={styles.subTitle}>Choose Amount:</Text>
|