Commit 7365e5fe authored by Trisno's avatar Trisno

benerin bug di method balance + points

parent 1ec20d07
import React from 'react'; import React from 'react';
import { View, Text, TextInput, StyleSheet, Button, TouchableOpacity, Alert, BackHandler } from 'react-native'; import { View, Text, TextInput, StyleSheet, Button, TouchableOpacity, Alert, BackHandler, ToastAndroid } from 'react-native';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import Axios from 'axios'; import Axios from 'axios';
import ActionType from '../redux/globalActionType'; import ActionType from '../redux/globalActionType';
...@@ -46,7 +46,8 @@ class RedeemCode extends React.Component { ...@@ -46,7 +46,8 @@ class RedeemCode extends React.Component {
this.props.setRedeem(redeemProps) this.props.setRedeem(redeemProps)
Alert.alert('', 'Berhasil dibatalkan') // Alert.alert('', 'Berhasil dibatalkan')
ToastAndroid.show("berhasil dibatalkan", ToastAndroid.SHORT)
this.props.navigation.navigate('Home', { screen: 'HOME' }); this.props.navigation.navigate('Home', { screen: 'HOME' });
}).catch(error => { }).catch(error => {
let response = error.response.data let response = error.response.data
......
...@@ -236,7 +236,7 @@ class UseBalance extends React.Component { ...@@ -236,7 +236,7 @@ class UseBalance extends React.Component {
session_id: this.props.session_id, session_id: this.props.session_id,
pin: this.state.pin, pin: this.state.pin,
balance: 0, balance: 0,
point: this.state.kasproPoint point: this.state.input_redeem
} }
console.log(params) console.log(params)
......
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