diff --git a/analytics.js b/analytics.js index 4d6a0a14..84d65cc9 100644 --- a/analytics.js +++ b/analytics.js @@ -24,6 +24,7 @@ A.ENUM = { CREATED_WALLET: 'CREATED_WALLET', CREATED_LIGHTNING_WALLET: 'CREATED_LIGHTNING_WALLET', APP_UNSUSPENDED: 'APP_UNSUSPENDED', + NAVIGATED_TO_WALLETS_HODLHODL: 'NAVIGATED_TO_WALLETS_HODLHODL', }; module.exports = A; diff --git a/class/hd-segwit-p2sh-wallet.js b/class/hd-segwit-p2sh-wallet.js index 32f8e3b6..32b32e8e 100644 --- a/class/hd-segwit-p2sh-wallet.js +++ b/class/hd-segwit-p2sh-wallet.js @@ -154,4 +154,8 @@ export class HDSegwitP2SHWallet extends AbstractHDElectrumWallet { }); return address; } + + allowHodlHodlTrading() { + return true; + } } diff --git a/screen/wallets/hodlHodl.js b/screen/wallets/hodlHodl.js index 403cb98f..7f4af34a 100644 --- a/screen/wallets/hodlHodl.js +++ b/screen/wallets/hodlHodl.js @@ -20,6 +20,7 @@ import PropTypes from 'prop-types'; import { HodlHodlApi } from '../../class/hodl-hodl-api'; import Modal from 'react-native-modal'; import { Icon } from 'react-native-elements'; +const A = require('../../analytics'); const CURRENCY_CODE_ANY = '_any'; const METHOD_ANY = '_any'; @@ -263,6 +264,7 @@ export default class HodlHodl extends Component { async componentDidMount() { console.log('wallets/hodlHodl - componentDidMount'); + A(A.ENUM.NAVIGATED_TO_WALLETS_HODLHODL); try { await this.fetchMyCountry();