formatting

This commit is contained in:
Akinwale Ariwodola 2019-06-21 10:19:25 +01:00
parent aa285f90ae
commit 945308dfbc

View file

@ -34,7 +34,7 @@ class FirstRunScreen extends React.PureComponent {
skipAccountConfirmed: false, skipAccountConfirmed: false,
showBottomContainer: false, showBottomContainer: false,
walletPassword: null, walletPassword: null,
syncApplyStarted: false syncApplyStarted: false,
}; };
componentDidMount() { componentDidMount() {
@ -235,11 +235,13 @@ class FirstRunScreen extends React.PureComponent {
} }
}; };
onEmailViewLayout = (phase) => { onEmailViewLayout = phase => {
if ('collect' === phase) { if ('collect' === phase) {
if (!this.state.emailCollectTracked) { if (!this.state.emailCollectTracked) {
// we only want to track this once // we only want to track this once
this.setState({ emailCollectTracked: true }, () => NativeModules.Firebase.track('first_run_email_collect', null)); this.setState({ emailCollectTracked: true }, () =>
NativeModules.Firebase.track('first_run_email_collect', null)
);
} }
} else if ('verify' === phase) { } else if ('verify' === phase) {
NativeModules.Firebase.track('first_run_email_verify', null); NativeModules.Firebase.track('first_run_email_verify', null);
@ -254,7 +256,9 @@ class FirstRunScreen extends React.PureComponent {
onWalletViewLayout = () => { onWalletViewLayout = () => {
if (!this.state.enterPasswordTracked) { if (!this.state.enterPasswordTracked) {
this.setState({ enterPasswordTracked: true }, () => NativeModules.Firebase.track('first_run_enter_password', null)); this.setState({ enterPasswordTracked: true }, () =>
NativeModules.Firebase.track('first_run_enter_password', null)
);
} }
this.setState({ showBottomContainer: true }); this.setState({ showBottomContainer: true });
}; };