From 588fc7a0470e1605234c97a5bf2760bfc631381c Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 14 Mar 2021 17:14:49 -0300 Subject: [PATCH] fix for connection_status -> wallet.connected --- ui/component/splash/view.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/component/splash/view.jsx b/ui/component/splash/view.jsx index 73a7b08ad..2356c897c 100644 --- a/ui/component/splash/view.jsx +++ b/ui/component/splash/view.jsx @@ -30,7 +30,7 @@ type Props = { animationHidden: boolean, toggleSplashAnimation: () => void, clearWalletServers: () => void, - doShowSnackBar: string => void, + doShowSnackBar: (string) => void, }; type State = { @@ -109,10 +109,10 @@ export default class SplashScreen extends React.PureComponent { const { modal, notifyUnlockWallet, clearWalletServers, doShowSnackBar } = this.props; const { launchedModal } = this.state; - Lbry.status().then(status => { + Lbry.status().then((status) => { const sdkStatus = status; const { wallet } = status; - Lbry.wallet_status().then(status => { + Lbry.wallet_status().then((status) => { if (sdkStatus.is_running && wallet && wallet.available_servers) { if (status.is_locked) { // Clear the error timeout, it might sit on this step for a while until someone enters their password @@ -150,7 +150,7 @@ export default class SplashScreen extends React.PureComponent { } updateStatusCallback(status: StatusResponse, walletStatus: WalletStatusResponse, waitingForUnlock: boolean = false) { - if (status.connection_status.code !== 'connected') { + if (!status.wallet || !status.wallet.connected) { this.setState({ error: true }); return; }