From d1d1e32063e8396590d2d3ad1a0c2ff10a4ae149 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 20 Aug 2018 12:33:36 -0400 Subject: [PATCH] only record user once --- src/renderer/component/splash/view.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderer/component/splash/view.jsx b/src/renderer/component/splash/view.jsx index f72d28d87..708dc731a 100644 --- a/src/renderer/component/splash/view.jsx +++ b/src/renderer/component/splash/view.jsx @@ -35,6 +35,8 @@ export class SplashScreen extends React.PureComponent { isRunning: false, launchedModal: false, }; + + this.hasRecordedUser = false; } componentDidMount() { @@ -65,8 +67,9 @@ export class SplashScreen extends React.PureComponent { const { notifyUnlockWallet, authenticate } = this.props; const { launchedModal } = this.state; - if (status) { + if (!this.hasRecordedUser && status) { authenticate(); + this.hasRecordedUser = true; } if (status.wallet && status.wallet.is_locked) { @@ -119,6 +122,8 @@ export class SplashScreen extends React.PureComponent { }, 500); } + hasRecordedUser: boolean; + render() { const { notification } = this.props; const { message, details, isRunning } = this.state;