From 37c1de472f5f403842df2ba0cc94defc9f30794b Mon Sep 17 00:00:00 2001 From: Overtorment Date: Fri, 6 Jul 2018 17:28:04 +0100 Subject: [PATCH] REF: analytics --- analytics.js | 1 + screen/wallets/add.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/analytics.js b/analytics.js index 3859dce79..f216cee7c 100644 --- a/analytics.js +++ b/analytics.js @@ -16,6 +16,7 @@ let A = function(event) { A.ENUM = { INIT: 'INIT', GOT_NONZERO_BALANCE: 'GOT_NONZERO_BALANCE', + CREATED_WALLET: 'CREATED_WALLET', }; module.exports = A; diff --git a/screen/wallets/add.js b/screen/wallets/add.js index 8704eb617..3893d17bc 100644 --- a/screen/wallets/add.js +++ b/screen/wallets/add.js @@ -12,6 +12,8 @@ import { } from '../../BlueComponents'; import PropTypes from 'prop-types'; let EV = require('../../events'); +let A = require('../../analytics'); +/** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); let loc = require('../../loc'); const { height, width } = Dimensions.get('window'); @@ -100,6 +102,7 @@ export default class WalletsAdd extends Component { BlueApp.wallets.push(w); await BlueApp.saveToDisk(); EV(EV.enum.WALLETS_COUNT_CHANGED); + A(A.ENUM.CREATED_WALLET); }, 1); }} />