Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
solved trim issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pertinentstark committed Apr 25, 2019
1 parent c96c4b9 commit 7e26b8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions wallet 2.0/src/Components/TMTransfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class TMTransfer extends Component {
}

componentDidMount = () => {
console.log('this vpn', this.props.vpnPayment)
// console.log('this vpn', this.props.vpnPayment)
if (this.props.vpnPayment.isPayment && !this.state.gotVPN) {

this.setState({
Expand All @@ -91,7 +91,7 @@ class TMTransfer extends Component {
}
}
componentWillReceiveProps = (nextProps) => {
console.log('this next vpn', this.props.vpnPayment)
// console.log('this next vpn', this.props.vpnPayment)
if (nextProps.vpnPayment.isPayment) {
this.setState({
toAddress: nextProps.vpnPayment.data.vpn_addr,
Expand Down Expand Up @@ -151,7 +151,7 @@ class TMTransfer extends Component {
}
this.props.payVPNSession(data).then(response => {
if (response.error) {
console.log("Pay VPN Error...", response);
// console.log("Pay VPN Error...", response);
if (response.error.data === 'Ciphertext decryption failed')
this.setState({ sending: false, openSnack: true, snackMessage: lang[this.props.language].IncorrectPwd });
else
Expand Down
2 changes: 1 addition & 1 deletion wallet 2.0/src/Utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function getOVPNTM(account_addr, vpn_data, session_data, cb) {
}

export function getWireguardTM(account_addr, vpn_data, session_data, cb) {
let pubg = localStorage.getItem("PUBG").trim();
let pubg = localStorage.getItem("PUBG") ? localStorage.getItem("PUBG").trim() : '';
let data = {
token: session_data.token,
pub_key: pubg
Expand Down

0 comments on commit 7e26b8b

Please sign in to comment.